mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-32794 SCORM prevent items in tree that have no navigation from triggering a navigation change.
This commit is contained in:
parent
71d7bc34a8
commit
0ae299769c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user