Merge branch 'master_MDL-38489' of git://github.com/danmarsden/moodle
This commit is contained in:
+1
-2
@@ -4,13 +4,12 @@ M.mod_scormform.init = function(Y) {
|
||||
var cwidth = scormplayerdata.cwidth;
|
||||
var cheight = scormplayerdata.cheight;
|
||||
var poptions = scormplayerdata.popupoptions;
|
||||
var courseid = scormplayerdata.courseid;
|
||||
var launch = scormplayerdata.launch;
|
||||
var currentorg = scormplayerdata.currentorg;
|
||||
var sco = scormplayerdata.sco;
|
||||
var scorm = scormplayerdata.scorm;
|
||||
var launch_url = M.cfg.wwwroot+"/mod/scorm/player.php?a="+scorm+"¤torg="+currentorg+"&scoid="+sco+"&sesskey="+M.cfg.sesskey;
|
||||
var course_url = M.cfg.wwwroot+"/course/view.php?id="+courseid+"&sesskey="+M.cfg.sesskey;
|
||||
var course_url = scormplayerdata.courseurl;
|
||||
|
||||
if ((cwidth==100) && (cheight==100)) {
|
||||
poptions = poptions+',width='+screen.availWidth+',height='+screen.availHeight+',left=0,top=0';
|
||||
|
||||
+9
-1
@@ -83,11 +83,19 @@ if (!empty($scorm->popup)) {
|
||||
$launch = true;
|
||||
}
|
||||
}
|
||||
// Redirect back to the section with one section per page ?
|
||||
|
||||
$courseformat = course_get_format($course)->get_course();
|
||||
$sectionid = '';
|
||||
if (isset($courseformat->coursedisplay) && $courseformat->coursedisplay == COURSE_DISPLAY_MULTIPAGE) {
|
||||
$sectionid = $cm->section;
|
||||
}
|
||||
|
||||
$PAGE->requires->data_for_js('scormplayerdata', Array('launch' => $launch,
|
||||
'currentorg' => $orgidentifier,
|
||||
'sco' => $scoid,
|
||||
'scorm' => $scorm->id,
|
||||
'courseid' => $scorm->course,
|
||||
'courseurl' => course_get_url($course, $sectionid)->out(false),
|
||||
'cwidth' => $scorm->width,
|
||||
'cheight' => $scorm->height,
|
||||
'popupoptions' => $scorm->options), true);
|
||||
|
||||
Reference in New Issue
Block a user