|
|
|
@ -1323,8 +1323,13 @@ if (!empty($error)) { |
|
|
|
$("#save_for_now_"+question_id).html(\''. |
|
|
|
$("#save_for_now_"+question_id).html(\''. |
|
|
|
Display::return_icon('save.png', get_lang('Saved'), [], ICON_SIZE_SMALL).'\'); |
|
|
|
Display::return_icon('save.png', get_lang('Saved'), [], ICON_SIZE_SMALL).'\'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// window.quizTimeEnding will be reset in exercise.class.php |
|
|
|
|
|
|
|
if (window.quizTimeEnding) { |
|
|
|
|
|
|
|
redirectExerciseToResult(); |
|
|
|
|
|
|
|
} else { |
|
|
|
window.location = url; |
|
|
|
window.location = url; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
error: function() { |
|
|
|
error: function() { |
|
|
|
$("#save_for_now_"+question_id).html(\''. |
|
|
|
$("#save_for_now_"+question_id).html(\''. |
|
|
|
@ -1387,6 +1392,8 @@ if (!empty($error)) { |
|
|
|
function validate_all() { |
|
|
|
function validate_all() { |
|
|
|
save_now_all("validate"); |
|
|
|
save_now_all("validate"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.quizTimeEnding = false; |
|
|
|
</script>'; |
|
|
|
</script>'; |
|
|
|
|
|
|
|
|
|
|
|
echo '<form id="exercise_form" method="post" action="'. |
|
|
|
echo '<form id="exercise_form" method="post" action="'. |
|
|
|
|