mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-33755 SCORM: fix the way launch is triggered
fixes bug with the way it handles skipview set to first time.
This commit is contained in:
parent
410b7c9bcc
commit
812bdaeb12
@ -24,10 +24,8 @@ M.mod_scormform.init = function(Y) {
|
||||
poptions = poptions+',width='+cwidth+',height='+cheight;
|
||||
}
|
||||
|
||||
if (launch != false) {
|
||||
if (launch == 2) {
|
||||
launch_url = launch_url+"&display=popup";
|
||||
}
|
||||
if (launch == true) {
|
||||
launch_url = launch_url+"&display=popup";
|
||||
window.open(launch_url,'Popup', poptions);
|
||||
parent.window.location = course_url;
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ if (!empty($scorm->popup)) {
|
||||
}
|
||||
$scoid = $sco->id;
|
||||
}
|
||||
$launch = $scorm->skipview;
|
||||
$launch = true;
|
||||
}
|
||||
}
|
||||
$PAGE->requires->data_for_js('scormplayerdata', Array('launch' => $launch,
|
||||
|
Loading…
x
Reference in New Issue
Block a user