Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Dan Marsden danmarsden authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 mod/scorm/module.js
5 mod/scorm/module.js
@@ -365,6 +365,9 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
365 365 scorm_tree_node = tree;
366 366 tree.singleNodeHighlight = true;
367 367 tree.subscribe('labelClick', function(node) {
  368 + if (node.title == '' || node.title == null) {
  369 + return; //this item has no navigation
  370 + }
368 371 scorm_activate_item(node);
369 372 if (node.children.length) {
370 373 scorm_bloody_labelclick = true;
@@ -465,4 +468,4 @@ function scorm_get_next() {
465 468 mod_scorm_activate_item(next);
466 469 }
467 470 }
468   -}
  471 +}

0 comments on commit 8254d87

Please sign in to comment.
Something went wrong with that request. Please try again.