Skip to content

Commit

Permalink
MDL-39219 mod_scorm - make sure YUI JSON module is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
davosmith committed Apr 23, 2013
1 parent c4dccb9 commit c23ff8e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mod/scorm/player.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,12 @@
if (!isset($result->toctitle)) {
$result->toctitle = get_string('toc', 'scorm');
}
$PAGE->requires->js_init_call('M.mod_scorm.init', array($scorm->hidenav, $scorm->hidetoc, $result->toctitle, $name, $sco->id, $adlnav));
$jsmodule = array(
'name' => 'mod_scorm',
'fullpath' => '/mod/scorm/module.js',
'requires' => array('json'),
);
$PAGE->requires->js_init_call('M.mod_scorm.init', array($scorm->hidenav, $scorm->hidetoc, $result->toctitle, $name, $sco->id, $adlnav), false, $jsmodule);
}
if (!empty($forcejs)) {
echo $OUTPUT->box(get_string("forcejavascriptmessage", "scorm"), "generalbox boxaligncenter forcejavascriptmessage");
Expand Down

0 comments on commit c23ff8e

Please sign in to comment.