diff --git a/lib/get-branch.php b/lib/get-branch.php index 5b1dded..0afbed6 100644 --- a/lib/get-branch.php +++ b/lib/get-branch.php @@ -64,9 +64,28 @@ if (isset($_GET['location'])) { x = locNest.nextSibling; x.parentNode.removeChild(x); } - newUL.innerHTML = document.getElementById('branch').innerHTML.slice(28).slice(0,-7); - locNest.parentNode.insertBefore(newUL,locNest.nextSibling); - top.ICEcoder.redoTabHighlight(top.ICEcoder.selectedTab); + folderContent = document.getElementById('branch').innerHTML; + if (folderContent.indexOf('