MDL-32794 SCORM prevent items in tree that have no navigation from triggering a navigation change.

This commit is contained in:
Dan Marsden 2012-05-11 12:51:39 +12:00
parent 71d7bc34a8
commit 0ae299769c

View File

@ -363,6 +363,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;