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:
Dan Marsden 2012-09-12 20:16:57 +12:00
parent 410b7c9bcc
commit 812bdaeb12
2 changed files with 3 additions and 5 deletions

View File

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

View File

@ -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,