MDL-36347 quiz: formchangechecker should not obstruct auto-submit.

When the quiz time limit runs out, the quiz should be submitted
automatically, withouth formchangechecker popping up a dialogue.
This commit is contained in:
Tim Hunt 2012-11-03 18:36:13 +11:00
parent 6109f2112c
commit b5488ffdaa

View File

@ -101,6 +101,7 @@ M.mod_quiz.timer = {
if (form.one('input[name=finishattempt]')) {
form.one('input[name=finishattempt]').set('value', 0);
}
M.core_formchangechecker.set_form_submitted();
form.submit();
return;
}