mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-08 11:50:10 +01:00
parent
8e1f79f537
commit
f46418d1f9
@ -52,7 +52,7 @@ 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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user