mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-02-21 20:59:04 +00:00
Updated dashboard.js
FIX: Directly jumping to N page from pagination caused the menu item in sidebar (e.g. Manage users) to be inactive.
This commit is contained in:
parent
c08785dc5f
commit
a2f544db99
@ -295,7 +295,7 @@ page.updateTrigger = (trigger, newState) => {
|
|||||||
if (newState === 'loading') {
|
if (newState === 'loading') {
|
||||||
trigger.classList.add('is-loading')
|
trigger.classList.add('is-loading')
|
||||||
} else if (newState === 'active') {
|
} else if (newState === 'active') {
|
||||||
if (trigger.parentNode.tagName !== 'LI')
|
if (!trigger.id.startsWith('item'))
|
||||||
return
|
return
|
||||||
for (let i = 0; i < page.menus.length; i++)
|
for (let i = 0; i < page.menus.length; i++)
|
||||||
page.menus[i].classList.remove('is-active')
|
page.menus[i].classList.remove('is-active')
|
||||||
|
Loading…
Reference in New Issue
Block a user