Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…iggering a navigation change.
  • Loading branch information...
commit 8254d87d6680725e760c0189bb10a985adad86cc 1 parent efac2d2
@danmarsden danmarsden authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/scorm/module.js
View
5 mod/scorm/module.js
@@ -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);
}
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.