Skip to content

Commit e959758

Browse files
committed
Quiz: Fix user answers for hotspot when time ending #3044
1 parent b042a11 commit e959758

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

main/exercise/exercise.class.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3408,10 +3408,6 @@ function onExpiredTimeExercise() {
34083408
public function showTimeControlJS($timeLeft)
34093409
{
34103410
$timeLeft = (int) $timeLeft;
3411-
$script = 'redirectExerciseToResult();';
3412-
if (ALL_ON_ONE_PAGE == $this->type) {
3413-
$script = "save_now_all('validate');";
3414-
}
34153411

34163412
return "<script>
34173413
function openClockWarning() {
@@ -3443,7 +3439,7 @@ function openClockWarning() {
34433439
34443440
function send_form() {
34453441
if ($('#exercise_form').length) {
3446-
$script
3442+
save_now_all('validate');
34473443
} else {
34483444
// In exercise_reminder.php
34493445
final_submit();

0 commit comments

Comments
 (0)