Cleaned up dashboard.js

This commit is contained in:
Bobby Wibowo 2020-10-02 23:52:15 +07:00
parent aa5e5ce87b
commit f211a39aef
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -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')