Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Root files & folders show on load
Browse files Browse the repository at this point in the history
Makes sense to show files & folders at root level on load, rather than
just show a single folder. This topmost level is now shown on load.
  • Loading branch information
mattpass committed May 29, 2012
1 parent 1382277 commit b3afe94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/coder.js
Expand Up @@ -593,7 +593,7 @@ var ICEcoder = {
while (1) {
if (node != null) {
if (node.tagName == "UL") {
var d = (node.style.display == "none")
var d = (node.style.display == "none");
node.style.display = (d) ? "block" : "none";
this.className = (d) ? "open" : "closed";
return false;
Expand All @@ -613,6 +613,8 @@ var ICEcoder = {
}
}
}
aMenus[0].childNodes[0].className = "open";
aMenus[0].childNodes[1].style.display = "block";
return false;
},

Expand Down

0 comments on commit b3afe94

Please sign in to comment.