Merge branch 'MDL-30885' of git://github.com/timhunt/moodle

This commit is contained in:
Sam Hemelryk 2012-10-02 10:31:13 +13:00
commit cf45206006
2 changed files with 3 additions and 1 deletions

View File

@ -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'),
),
);
}

View File

@ -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) {