mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 15:21:33 +00:00
Cleaned up dashboard.js
This commit is contained in:
parent
aa5e5ce87b
commit
f211a39aef
@ -298,11 +298,9 @@ page.updateTrigger = (trigger, newState) => {
|
|||||||
if (trigger.parentNode.tagName === 'LI' && !trigger.className.includes('pagination-link')) {
|
if (trigger.parentNode.tagName === 'LI' && !trigger.className.includes('pagination-link')) {
|
||||||
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')
|
||||||
trigger.classList.remove('is-loading')
|
|
||||||
trigger.classList.add('is-active')
|
trigger.classList.add('is-active')
|
||||||
} else {
|
|
||||||
trigger.classList.remove('is-loading')
|
|
||||||
}
|
}
|
||||||
|
trigger.classList.remove('is-loading')
|
||||||
} else {
|
} else {
|
||||||
trigger.classList.remove('is-loading')
|
trigger.classList.remove('is-loading')
|
||||||
trigger.classList.remove('is-active')
|
trigger.classList.remove('is-active')
|
||||||
|
Loading…
Reference in New Issue
Block a user