|
|
|
|
@ -1201,8 +1201,13 @@ if (!empty($error)) { |
|
|
|
|
//$("#save_for_now_"+question_id).html(\''.Display::return_icon('save.png', get_lang('Saved'), [], ICON_SIZE_SMALL).'\'); |
|
|
|
|
window.location = url; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function redirectExerciseToResult() |
|
|
|
|
{ |
|
|
|
|
window.location = "'.$script_php.'?'.$params.'"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function save_now(question_id, url_extra) { |
|
|
|
|
function save_now(question_id, url_extra, validate) { |
|
|
|
|
//1. Normal choice inputs |
|
|
|
|
var my_choice = $(\'*[name*="choice[\'+question_id+\']"]\').serialize(); |
|
|
|
|
|
|
|
|
|
@ -1245,7 +1250,7 @@ if (!empty($error)) { |
|
|
|
|
success: function(return_value) { |
|
|
|
|
if (return_value == "ok") { |
|
|
|
|
$("#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).'\'); |
|
|
|
|
} else if (return_value == "error") { |
|
|
|
|
$("#save_for_now_"+question_id).html(\''. |
|
|
|
|
Display::return_icon('error.png', get_lang('Error'), [], ICON_SIZE_SMALL).'\'); |
|
|
|
|
@ -1311,7 +1316,6 @@ if (!empty($error)) { |
|
|
|
|
data: "'.$params.'&type=all&"+my_choice+"&"+hotspot+"&"+free_answers+"&"+remind_list, |
|
|
|
|
success: function(return_value) { |
|
|
|
|
if (return_value == "ok") { |
|
|
|
|
//$("#save_all_response").html(\''.Display::return_icon('accept.png').'\'); |
|
|
|
|
if (validate == "validate") { |
|
|
|
|
window.location = "'.$script_php.'?'.$params.'"; |
|
|
|
|
} else { |
|
|
|
|
|