No longer dealing with opening thru display

We are no longer setting display block here, this is now done once we
have injected the DOM elems into the tree at that dir. Once that is
done, we set the display to block. We still set none here when
collapsing. This avoids a flash of possibly unsorted files.
This commit is contained in:
Matt Pass
2013-03-02 17:17:05 +00:00
parent 2025e8f10b
commit d122c83535

View File

@@ -388,8 +388,7 @@ var ICEcoder = {
var d = node.style.display=="none";
if (d) {
top.ICEcoder.filesFrame.contentWindow.frames['fileControl'].location.href = "lib/get-branch.php?location="+dir.childNodes[1].id;
}
node.style.display = d ? "block" : "none";
} else {node.style.display = "none"}
dir.parentNode.className=dir.className = d ? "pft-directory dirOpen" : "pft-directory";
}
return false;