aboutsummaryrefslogtreecommitdiff
path: root/src/main/assets/scripts.js
diff options
context:
space:
mode:
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();