]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-13766, expand automaticlly"
authordongsheng <dongsheng>
Thu, 11 Sep 2008 07:58:39 +0000 (07:58 +0000)
committerdongsheng <dongsheng>
Thu, 11 Sep 2008 07:58:39 +0000 (07:58 +0000)
repository/lib.php

index fabaad325e81a2153fd9641b2753a4410bb38849..aa8bd404d6b7bee01bbf1b7bb58c8ed059560edf 100644 (file)
@@ -1689,6 +1689,9 @@ _client.buildtree = function(node, level){
     tmpNode.icon = node.thumbnail;
     tmpNode.path = node.path;
     if(node.children){
+        if(node.expanded){
+            tmpNode.expand();
+        }
         tmpNode.isLeaf = false;
         if (node.path) {
             tmpNode.path = node.path;