We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73e2ce2 commit 0cb67bbCopy full SHA for 0cb67bb
static/scripts/collapse.js
@@ -1,6 +1,8 @@
1
function hideAllButCurrent(){
2
//by default all submenut items are hidden
3
- document.querySelectorAll("nav > ul > li > ul li").style.display = "none";
+ document.querySelectorAll("nav > ul > li > ul li").forEach(function(parent) {
4
+ parent.style.display = "none";
5
+ });
6
7
//only current page (if it exists) should be opened
8
var file = window.location.pathname.split("/").pop();
0 commit comments