aboutsummaryrefslogtreecommitdiff
path: root/src/main/assets/scripts.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-12-06 11:08:28 +0300
committerGravatar Vitaly Takmazov2018-12-06 11:08:28 +0300
commit032eaf035f566bbaba1c701b5eef8bebd55e68d4 (patch)
tree44f11bd5d827d352907d2b88f0d6bcc3f213b1b0 /src/main/assets/scripts.js
parent2ee360b1506259447ed7df45c3a034ee9ceeac2f (diff)
styling
Diffstat (limited to 'src/main/assets/scripts.js')
-rw-r--r--src/main/assets/scripts.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/assets/scripts.js b/src/main/assets/scripts.js
index 32888279..f90fe2c5 100644
--- a/src/main/assets/scripts.js
+++ b/src/main/assets/scripts.js
@@ -868,11 +868,10 @@ ready(function() {
}
});
let location = window.location.href;
- document.querySelectorAll('#global li a').forEach(el => {
+ document.querySelectorAll('#header_wrapper a').forEach(el => {
if (el.href === location) {
el.classList.add('active');
- el.parentNode.classList.add('active');
- el.parentNode.setAttribute('aria-disabled', 'true');
+ el.setAttribute('aria-disabled', 'true');
}
});
initES();