MDL-30790 - Option to collapse or expand sub-folders

This commit is contained in:
Rex Lorenzo 2013-03-15 16:09:56 -07:00
parent 7112729206
commit f295727859
8 changed files with 38 additions and 7 deletions

View file

@ -35,6 +35,9 @@ M.mod_folder.init_tree = function(Y, id, expand_all) {
if (expand_all) {
tree.expandAll();
} else {
// Else just expand the top node.
tree.getNodeByIndex(1).expand();
}
tree.render();