Quiz: Fix user answers for hotspot when time ending #3044

pull/3399/head
Angel Fernando Quiroz Campos 5 years ago
parent b042a115f5
commit e959758797
  1. 6
      main/exercise/exercise.class.php

@ -3408,10 +3408,6 @@ class Exercise
public function showTimeControlJS($timeLeft)
{
$timeLeft = (int) $timeLeft;
$script = 'redirectExerciseToResult();';
if (ALL_ON_ONE_PAGE == $this->type) {
$script = "save_now_all('validate');";
}
return "<script>
function openClockWarning() {
@ -3443,7 +3439,7 @@ class Exercise
function send_form() {
if ($('#exercise_form').length) {
$script
save_now_all('validate');
} else {
// In exercise_reminder.php
final_submit();

Loading…
Cancel
Save