Permalink
Browse files

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.
  • Loading branch information...
1 parent d402e05 commit 917cea604caf663ea6e796e732e01b63a7cfe133 @timhunt timhunt committed Nov 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/quiz/module.js
View
@@ -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;
}

0 comments on commit 917cea6

Please sign in to comment.