Skip to content
Snippets Groups Projects
Commit e13a62b7 authored by Silvio Giebl's avatar Silvio Giebl
Browse files

Fixed js browser incompatibility

(cherry picked from commit 9f3f38acf4e1ac40e3fb2b2f86018d4cba28dd07)
parent a5842c0d
No related branches found
No related tags found
No related merge requests found
......@@ -27,11 +27,11 @@ function initNav() {
jtd.addEvent(document, 'click', function(e){
var target = e.target;
while (target && !(target.classList && target.classList.contains('nav-list-expander'))) {
target = target.parentElement;
target = target.parentNode;
}
if (target) {
e.preventDefault();
target.parentElement.classList.toggle('active');
target.parentNode.classList.toggle('active');
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment