Skip to content

Commit

Permalink
Merge branch 'MDL-43069-master' of git://github.com/danpoltawski/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Nov 23, 2015
2 parents b58d059 + 4dab33b commit 6a82d5d
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions mod/assign/module.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
M.mod_assign = {};

M.mod_assign.init_tree = function(Y, expand_all, htmlid) {
Y.use('yui2-treeview', function(Y) {
var tree = new Y.YUI2.widget.TreeView(htmlid);
var treeElement = Y.one('#'+htmlid);
if (treeElement) {
Y.use('yui2-treeview', function(Y) {
var tree = new Y.YUI2.widget.TreeView(htmlid);

tree.subscribe("clickEvent", function(node, event) {
// We want normal clicking which redirects to url.
return false;
});
tree.subscribe("clickEvent", function(node, event) {
// We want normal clicking which redirects to url.
return false;
});

if (expand_all) {
tree.expandAll();
}
tree.render();
});
if (expand_all) {
tree.expandAll();
}
tree.render();
});
}
};

M.mod_assign.init_grading_table = function(Y) {
Expand Down

0 comments on commit 6a82d5d

Please sign in to comment.