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