Do not change location hash when toggle menu or open preferences

The default event must be prevented to not update the location hash.

issue7588
review74271002
This commit is contained in:
Cédric Krier
2018-07-26 00:35:34 +02:00
parent 0629d4bef0
commit 53ead8b484
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ this repository contains the full copyright notices and license terms. -->
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" data-toggle="offcanvas">
<a class="navbar-brand" href="javascript:void()" data-toggle="offcanvas">
<span class="glyphicon glyphicon-menu-hamburger"></span>
Tryton
</a>
+4 -1
View File
@@ -594,7 +594,10 @@ var Sao = {};
jQuery('#user-preferences').append(jQuery('<a/>', {
'href': '#',
'title': preferences.status_bar,
}).click(Sao.preferences).append(preferences.status_bar));
}).click(function(evt) {
evt.preventDefault();
Sao.preferences();
}).append(preferences.status_bar));
var title = Sao.i18n.gettext("Logout");
jQuery('#user-logout').append(jQuery('<a/>', {
'href': '#',