mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
Merge branch 'MDL-30885' of git://github.com/timhunt/moodle
This commit is contained in:
commit
cf45206006
@ -1456,13 +1456,14 @@ function quiz_get_js_module() {
|
||||
'name' => 'mod_quiz',
|
||||
'fullpath' => '/mod/quiz/module.js',
|
||||
'requires' => array('base', 'dom', 'event-delegate', 'event-key',
|
||||
'core_question_engine'),
|
||||
'core_question_engine', 'moodle-core-formchangechecker'),
|
||||
'strings' => array(
|
||||
array('cancel', 'moodle'),
|
||||
array('flagged', 'question'),
|
||||
array('functiondisabledbysecuremode', 'quiz'),
|
||||
array('startattempt', 'quiz'),
|
||||
array('timesup', 'quiz'),
|
||||
array('changesmadereallygoaway', 'moodle'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@ -27,6 +27,7 @@ M.mod_quiz = M.mod_quiz || {};
|
||||
M.mod_quiz.init_attempt_form = function(Y) {
|
||||
M.core_question_engine.init_form(Y, '#responseform');
|
||||
Y.on('submit', M.mod_quiz.timer.stop, '#responseform');
|
||||
M.core_formchangechecker.init({formid: 'responseform'});
|
||||
};
|
||||
|
||||
M.mod_quiz.init_review_form = function(Y) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user