diff --git a/html/js/noalyss_script.js b/html/js/noalyss_script.js index 90b92dc3b..1e63c923a 100644 --- a/html/js/noalyss_script.js +++ b/html/js/noalyss_script.js @@ -3102,9 +3102,11 @@ function init_scroll() * @endcode * @param p_obj form element (object) or element id (string) * @param p_message message to display + * @param p_callback_true callback function or null + * @param p_waiting if true display a waiting box * @returns true or false */ -function confirm_box(p_obj, p_message, p_callback_true) +function confirm_box(p_obj, p_message, p_callback_true,p_waiting) { waiting_box(); try { @@ -3124,7 +3126,7 @@ function confirm_box(p_obj, p_message, p_callback_true) { smoke.confirm(p_message, function (e) { if (e) { - waiting_box(); + if (p_waiting){waiting_box();} $(name).submit(); } }); diff --git a/include/restore.inc.php b/include/restore.inc.php index 38456e84e..7d4aeca94 100644 --- a/include/restore.inc.php +++ b/include/restore.inc.php @@ -202,7 +202,7 @@ if ( isset ($_REQUEST['sa'] )) else { echo '