mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-30790 - Option to collapse or expand sub-folders
This commit is contained in:
parent
7112729206
commit
f295727859
8 changed files with 38 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue