Permalink
Browse files

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

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

Please sign in to comment.