Skip to content

Commit

Permalink
MDL-37394 SCORM: Aicc direct url fails with new nav as it has a singl…
Browse files Browse the repository at this point in the history
…e sco with no children - allow these to be navigated correctly.
  • Loading branch information
danmarsden committed Jan 11, 2013
1 parent d63a406 commit 1e503b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/scorm/module.js
Expand Up @@ -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);

Expand Down

0 comments on commit 1e503b8

Please sign in to comment.