Correct Cosmetic : waiting_box
This commit is contained in:
parent
878d7baca1
commit
5ebd0c6f52
3 changed files with 6 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ if ( isset ($_REQUEST['sa'] ))
|
|||
else
|
||||
{
|
||||
echo '<div class="content" style="width:80%;margin-left:10%">';
|
||||
printf( '<form method="POST" action="admin-noalyss.php" enctype="multipart/form-data" onsubmit="return (check_file_size(this,%s) && waiting_box())" >',MAX_FILE_SIZE);
|
||||
printf( '<form method="POST" action="admin-noalyss.php" enctype="multipart/form-data" onsubmit="return check_file_size(this,%s) " >',MAX_FILE_SIZE);
|
||||
echo HtmlInput::hidden('action','restore');
|
||||
echo HtmlInput::hidden('sa','r');
|
||||
echo '<table>';
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ if ($sb=="database")
|
|||
echo _("Mettez vos bases de données à jour pour qu'elles correspondent à cette version de Noalyss");
|
||||
?>
|
||||
</p>
|
||||
<form method="get" id="frm_upg_all" onsubmit="return confirm_box('frm_upg_all', '<?php echo _('Confirmez') ?>')">
|
||||
<form method="get" id="frm_upg_all" onsubmit="return confirm_box('frm_upg_all', '<?php echo _('Confirmez') ?>',false,true)">
|
||||
<input type="hidden" name="sb" value="database">
|
||||
<input type="hidden" name="sc" value="upg_all">
|
||||
<input type="hidden" name="action" value="upgrade">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue