diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php index 2867ea6ff3..aed3e4dad4 100644 --- a/main/exercice/exercise.class.php +++ b/main/exercice/exercise.class.php @@ -1662,8 +1662,7 @@ class Exercise { send_form(); } }); - $('#clock_warning').dialog('open'); - + $('#clock_warning').dialog('open'); $('#counter_to_redirect').epiclock({ mode: $.epiclock.modes.countdown, @@ -1677,7 +1676,12 @@ class Exercise { function send_form() { //console.log('send_form'); - $('#exercise_form').submit(); + if ($('#exercise_form').length) { + $('#exercise_form').submit(); + } else { + //In reminder + final_submit(); + } } function onExpiredTimeExercise() { @@ -3601,7 +3605,9 @@ class Exercise { } function return_time_left_div() { - return '
'; + $html = ' '; + $html .= ''; + return $html; } } endif; \ No newline at end of file diff --git a/main/exercice/exercise_reminder.php b/main/exercice/exercise_reminder.php index 00165ce93a..c9f460eb53 100644 --- a/main/exercice/exercise_reminder.php +++ b/main/exercice/exercise_reminder.php @@ -112,14 +112,14 @@ if ($time_control) { echo Display::div('', array('id'=>'message')); -echo ''; - - echo ' '; - + echo '