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

Fixed js browser incompatibility

(cherry picked from commit 86ff2dac05412a6ff994968c2be6122a7fcf85f9)
parent 6bd43a13
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ jtd.onReady = function(ready) {
function initNav() {
jtd.addEvent(document, 'click', function(e){
var target = e.target;
while (target && target.classList && !target.classList.contains('nav-list-expander')) {
while (target && !(target.classList && target.classList.contains('nav-list-expander'))) {
target = target.parentElement;
}
if (target) {
......
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