Merge branch 'master_MDL-37394' of git://github.com/danmarsden/moodle

This commit is contained in:
Sam Hemelryk 2013-01-14 11:46:13 +13:00
commit c2e2da2e69

View File

@ -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);