mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-33755 mod/scorm: directview scorm activity
Enable direct view of scorm activity from the course overview page Conflicts: mod/scorm/view.js
This commit is contained in:
parent
02ed0df5ae
commit
35cfa9e62c
4 changed files with 52 additions and 7 deletions
|
@ -180,9 +180,14 @@ if (empty($scorm->popup) || $displaymode=='popup') {
|
|||
$PAGE->set_button($exitlink);
|
||||
}
|
||||
|
||||
$PAGE->requires->data_for_js('scormplayerdata', Array('cwidth'=>$scorm->width,
|
||||
'cheight'=>$scorm->height,
|
||||
'popupoptions' => $scorm->options), true);
|
||||
$PAGE->requires->data_for_js('scormplayerdata', Array('launch' => 0,
|
||||
'currentorg' => '',
|
||||
'sco' => 0,
|
||||
'scorm' => 0,
|
||||
'courseid' => $scorm->course,
|
||||
'cwidth' => $scorm->width,
|
||||
'cheight' => $scorm->height,
|
||||
'popupoptions' => $scorm->options), true);
|
||||
$PAGE->requires->js('/mod/scorm/request.js', true);
|
||||
$PAGE->requires->js('/lib/cookies.js', true);
|
||||
$PAGE->requires->css('/mod/scorm/styles.css');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue