From 4e3a4dd55c18aef2e77a45914ebbef552bcc9605 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 11 May 2012 12:51:39 +1200 Subject: [PATCH] MDL-32794 SCORM prevent items in tree that have no navigation from triggering a navigation change. --- mod/scorm/module.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/scorm/module.js b/mod/scorm/module.js index c7f11cbf433..070ab53cce0 100644 --- a/mod/scorm/module.js +++ b/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;