Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-30885_23' of git://github.com/timhunt/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
commit 4891199f10e0868c2ecf54182c1dcb096bca233a 2 parents 50b252c + 022a355
Sam Hemelryk samhemelryk authored
Showing with 3 additions and 1 deletion.
  1. +2 −1  mod/quiz/locallib.php
  2. +1 −0  mod/quiz/module.js
3  mod/quiz/locallib.php
View
@@ -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'),
),
);
}
1  mod/quiz/module.js
View
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.