From f46418d1f983d20a2cc5ad8c636e9f96fbc729d4 Mon Sep 17 00:00:00 2001 From: Rsl1122 <24460436+Rsl1122@users.noreply.github.com> Date: Tue, 20 Oct 2020 16:32:52 +0300 Subject: [PATCH] Fix navigation menu buttons changing tab Affects: - Note #1617 --- .../src/main/resources/assets/plan/web/js/sb-admin-2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plan/common/src/main/resources/assets/plan/web/js/sb-admin-2.js b/Plan/common/src/main/resources/assets/plan/web/js/sb-admin-2.js index 8c5fa7f38..bd41c224a 100644 --- a/Plan/common/src/main/resources/assets/plan/web/js/sb-admin-2.js +++ b/Plan/common/src/main/resources/assets/plan/web/js/sb-admin-2.js @@ -52,8 +52,8 @@ for (let tab of tabs) { window.addEventListener('hashchange', openPage); //Sidebar navigation tabs -$('#accordionSidebar .nav-item a').click(event => { - if(history.replaceState) { +$('#accordionSidebar .nav-button, #accordionSidebar .nav-button a').click(event => { + if (history.replaceState) { event.preventDefault(); history.replaceState(undefined, undefined, '#' + event.currentTarget.href.split('#')[1]); openPage();