Permalink
Browse files

MDL-38634 folder: Problems displaying multiple folder resources inlin…

…e in the course page
  • Loading branch information...
1 parent 422f68f commit 1207ae1a34daad20ae9b386c61512325bcd808b3 @rlorenzo rlorenzo committed Apr 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/folder/module.js
View
@@ -37,7 +37,7 @@ M.mod_folder.init_tree = function(Y, id, expand_all) {
tree.expandAll();
} else {
// Else just expand the top node.
- tree.getNodeByIndex(1).expand();
+ tree.getRoot().children[0].expand();
}
tree.render();

0 comments on commit 1207ae1

Please sign in to comment.