We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b042a11 commit e959758Copy full SHA for e959758
main/exercise/exercise.class.php
@@ -3408,10 +3408,6 @@ function onExpiredTimeExercise() {
3408
public function showTimeControlJS($timeLeft)
3409
{
3410
$timeLeft = (int) $timeLeft;
3411
- $script = 'redirectExerciseToResult();';
3412
- if (ALL_ON_ONE_PAGE == $this->type) {
3413
- $script = "save_now_all('validate');";
3414
- }
3415
3416
return "<script>
3417
function openClockWarning() {
@@ -3443,7 +3439,7 @@ function openClockWarning() {
3443
3439
3444
3440
function send_form() {
3445
3441
if ($('#exercise_form').length) {
3446
- $script
3442
+ save_now_all('validate');
3447
} else {
3448
// In exercise_reminder.php
3449
final_submit();
0 commit comments