Browse files

MDL-32794 SCORM prevent items in tree that have no navigation from tr…

…iggering a navigation change.
  • Loading branch information...
1 parent 71d7bc3 commit 0ae299769cd9ed45e5ee6a4392d8ee484e357cda @danmarsden danmarsden committed May 11, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/scorm/module.js
View
3 mod/scorm/module.js
@@ -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;

0 comments on commit 0ae2997

Please sign in to comment.