Merge branch 'm21_MDL-32794' of git://github.com/danmarsden/moodle into MOODLE_21_STABLE

This commit is contained in:
Sam Hemelryk
2012-05-17 12:27:17 +12:00
+4 -1
View File
@@ -365,6 +365,9 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
scorm_tree_node = tree;
tree.singleNodeHighlight = true;
tree.subscribe('labelClick', function(node) {
if (node.title == '' || node.title == null) {
return; //this item has no navigation
}
scorm_activate_item(node);
if (node.children.length) {
scorm_bloody_labelclick = true;
@@ -465,4 +468,4 @@ function scorm_get_next() {
mod_scorm_activate_item(next);
}
}
}
}