Replace name confirm_form by confirm_box

This commit is contained in:
Dany De Bontridder 2015-08-28 14:00:41 +02:00
parent 31987ebb49
commit 6c2a2181e5
27 changed files with 46 additions and 46 deletions

View file

@ -147,7 +147,7 @@ if ( isset($_REQUEST['sa']))
$ret.=$po->form();
$ret.=HtmlInput::hidden('sa','po_update');
$ret.=HtmlInput::submit('Correction','Correction');
$ret.=sprintf('<input type="button" class="smallbutton" value="Efface" onClick="return confirm_form(\'anchor_del\',\' Voulez-vous vraiment effacer cette activité\','
$ret.=sprintf('<input type="button" class="smallbutton" value="Efface" onClick="return confirm_box(\'anchor_del\',\' Voulez-vous vraiment effacer cette activité\','
. 'function () { window.location=\'do.php?ac='.$_REQUEST['ac'].'&sa=po_delete&po_id=%s&pa_id=%s&'.$str_dossier.'\'}) ;"',
$po->id,
$_REQUEST['pa_id']
@ -195,7 +195,7 @@ if ( isset($_REQUEST['sa']))
$ret.=HtmlInput::button_anchor(_('Efface'),
'',
'remove_analytic_plan',
'onclick="return confirm_form(\'remove_analytic_plan\',\'Effacer ?\',function () {window.location=\'do.php?ac='.$_REQUEST['ac'].'&pa_id='.$_GET['pa_id'].'&sa=pa_delete&'.$str_dossier.'\';})"',
'onclick="return confirm_box(\'remove_analytic_plan\',\'Effacer ?\',function () {window.location=\'do.php?ac='.$_REQUEST['ac'].'&pa_id='.$_GET['pa_id'].'&sa=pa_delete&'.$str_dossier.'\';})"',
'smallbutton');
$ret.= '</form>';
/**