Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…e in the course page
  • Loading branch information...
commit 1207ae1a34daad20ae9b386c61512325bcd808b3 1 parent 422f68f
@rlorenzo rlorenzo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/folder/module.js
View
2  mod/folder/module.js
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.