From 7ffc89f41b19f99cb1d0681736b80729ca2cb22f Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 24 Feb 2013 17:15:19 +0000 Subject: [PATCH] Now working with branch loading! Only include settings file if we don't have ICEcoder settings available Need 4 x vars for fileCounts etc available here Contain tree within DIV which we can get the innerHTML of later for branch injection Need .$location when determining if a dir or not and also as part of the path If it's a folder and we have a treeType of branch or branchReload, add true as the 2nd param, false otherwise If we have a location, we're branch injecting, so get the target DOM elem, create a new UL, set the style of it, remove whatever UL may be there before, take the DIV innerHTML with the UL and /UL tags chopped off, make it the innerHTML of our UL and finally inject into the DOM at the right position. --- lib/get-tree.php | 44 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/lib/get-tree.php b/lib/get-tree.php index 33bd2dd..2d71cad 100644 --- a/lib/get-tree.php +++ b/lib/get-tree.php @@ -1,10 +1,18 @@ +
+'.$chmodInfo.''; } $type == "folder" ? $class = 'pft-directory' : $class = 'pft-file '.strtolower($ext); - echo "
  •         ".basename($fileFolderName)." ".$fileAtts."\n"; + $loadParam = $type == "folder" && ($ICEcoder['treeType'] == "branch" || $ICEcoder['treeType'] == "branchReload") ? "true" : "false"; + echo "
  •         ".basename($fileFolderName)." ".$fileAtts."\n"; if ($i\n";} $lastPath = $fileFolderName; } +?> +
  • + + + \ No newline at end of file