From 032eaf035f566bbaba1c701b5eef8bebd55e68d4 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 6 Dec 2018 11:08:28 +0300 Subject: styling --- src/main/assets/scripts.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/assets/scripts.js') 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(); -- cgit v1.2.3