From: dongsheng Date: Thu, 11 Sep 2008 07:58:39 +0000 (+0000) Subject: "MDL-13766, expand automaticlly" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=80108afd0ee3063b4e0cb63a89530c404b9b9bf0;p=moodle.git "MDL-13766, expand automaticlly" --- diff --git a/repository/lib.php b/repository/lib.php index fabaad325e..aa8bd404d6 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -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;