mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-08 03:39:42 +01:00
parent
8e1f79f537
commit
f46418d1f9
@ -52,8 +52,8 @@ for (let tab of tabs) {
|
|||||||
window.addEventListener('hashchange', openPage);
|
window.addEventListener('hashchange', openPage);
|
||||||
|
|
||||||
//Sidebar navigation tabs
|
//Sidebar navigation tabs
|
||||||
$('#accordionSidebar .nav-item a').click(event => {
|
$('#accordionSidebar .nav-button, #accordionSidebar .nav-button a').click(event => {
|
||||||
if(history.replaceState) {
|
if (history.replaceState) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
history.replaceState(undefined, undefined, '#' + event.currentTarget.href.split('#')[1]);
|
history.replaceState(undefined, undefined, '#' + event.currentTarget.href.split('#')[1]);
|
||||||
openPage();
|
openPage();
|
||||||
|
Loading…
Reference in New Issue
Block a user