Skip to content

Commit

Permalink
MDL-36347 quiz: formchangechecker should not obstruct auto-submit.
Browse files Browse the repository at this point in the history
When the quiz time limit runs out, the quiz should be submitted
automatically, withouth formchangechecker popping up a dialogue.
  • Loading branch information
timhunt committed Nov 3, 2012
1 parent 6109f21 commit b5488ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/quiz/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b5488ff

Please sign in to comment.