mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
Merge branch 'm26_MDL-46760' of https://github.com/danmarsden/moodle into MOODLE_26_STABLE
This commit is contained in:
commit
e2aa68b154
1 changed files with 8 additions and 2 deletions
|
@ -82,8 +82,14 @@ M.mod_scormform.init = function(Y) {
|
|||
}
|
||||
|
||||
var setlaunchoptions = function() {
|
||||
var mode = Y.one('#scormviewform input[name=mode]:checked').get('value');
|
||||
launch_url += '&mode=' + (mode ? mode : 'normal');
|
||||
var mode = Y.one('#scormviewform input[name=mode]:checked');
|
||||
if (mode) {
|
||||
var modevalue = mode.get('value');
|
||||
launch_url += '&mode=' + (modevalue ? modevalue : 'normal');
|
||||
} else {
|
||||
launch_url += '&mode=normal';
|
||||
}
|
||||
|
||||
var newattempt = Y.one('#scormviewform #a');
|
||||
launch_url += (newattempt && newattempt.get('checked') ? '&newattempt=on' : '');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue