Permalink
Browse files

MDL-37394 SCORM: Aicc direct url fails with new nav as it has a singl…

…e sco with no children - allow these to be navigated correctly.
  • Loading branch information...
1 parent d63a406 commit 1e503b8925bea1d7b9e20e681742530e35ff93b7 @danmarsden danmarsden committed Jan 11, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/scorm/module.js
View
@@ -527,6 +527,9 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
// finally activate the chosen item
var scorm_first_url = tree.getRoot().children[0];
+ if (scorm_first_url == null) { // This is probably a single sco with no children (AICC Direct uses this).
+ scorm_first_url = tree.getRoot();
+ }
scorm_first_url.title = scoes_nav[launch_sco].url;
scorm_activate_item(scorm_first_url);

0 comments on commit 1e503b8

Please sign in to comment.