mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08:00
parent
8e1f79f537
commit
f46418d1f9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user