From 98514ac46faf53d03bc1fae1ed638731d0e16c88 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 21 Jul 2013 19:00:01 +0100 Subject: [PATCH] Set highlights once folder anim done Was previously attempting highlights on folder open, needs to be when anim is done --- lib/get-branch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/get-branch.php b/lib/get-branch.php index 7c4736a..5ccf3a4 100644 --- a/lib/get-branch.php +++ b/lib/get-branch.php @@ -80,12 +80,12 @@ if (isset($_GET['location'])) { if (j==folderItems.length) { clearInterval(animFolders); showContent = showContent.slice(0,-2); + setTimeout(function(){top.ICEcoder.redoTabHighlight(top.ICEcoder.selectedTab);},4); if (!top.ICEcoder.fmReady) {top.ICEcoder.fmReady=true;}; } newUL.innerHTML = showContent; locNest.parentNode.insertBefore(newUL,locNest.nextSibling); },4); - top.ICEcoder.redoTabHighlight(top.ICEcoder.selectedTab); }