From d122c835353d458b13f6e1dc041487dea6dea951 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 2 Mar 2013 17:17:05 +0000 Subject: [PATCH] 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. --- lib/ice-coder.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 9d3e1df..7e19fb0 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -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;