Permalink
Browse files

Merge branch 'm21_MDL-32794' of git://github.com/danmarsden/moodle in…

…to MOODLE_21_STABLE
  • Loading branch information...
2 parents 3cf17d0 + 8254d87 commit 2dfeb89f48fc68c241033a024aafabdc111f42b2 Sam Hemelryk committed May 17, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/scorm/module.js
View
@@ -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);
}
}
-}
+}

0 comments on commit 2dfeb89

Please sign in to comment.