diff --git a/mod/quiz/module.js b/mod/quiz/module.js index c3aa3824884..76ccbc40251 100644 --- a/mod/quiz/module.js +++ b/mod/quiz/module.js @@ -95,7 +95,7 @@ M.mod_quiz.timer = { update: function() { var Y = M.mod_quiz.timer.Y; var secondsleft = Math.floor((M.mod_quiz.timer.endtime - new Date().getTime())/1000); - + // If time has expired, set the hidden form field that says time has expired and submit if (secondsleft < 0) { M.mod_quiz.timer.stop(null);