From 53ead8b484e40da988f4c72ee73c9fb1ea2527d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 26 Jul 2018 00:35:34 +0200 Subject: [PATCH] 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 --- index.html | 2 +- src/sao.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index bac744510c..01ce1e24eb 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,7 @@ this repository contains the full copyright notices and license terms. --> - + Tryton diff --git a/src/sao.js b/src/sao.js index f84422d784..7a1f375de7 100644 --- a/src/sao.js +++ b/src/sao.js @@ -594,7 +594,10 @@ var Sao = {}; jQuery('#user-preferences').append(jQuery('', { '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('', { 'href': '#',