mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 16:12:39 +01:00
Fix: ajout identifiant afin d'viter les conflits
This commit is contained in:
@@ -1167,7 +1167,7 @@ if ($_GET['propalid'] > 0)
|
||||
if ($conf->use_ajax && $conf->global->MAIN_CONFIRM_AJAX)
|
||||
{
|
||||
$url = $_SERVER["PHP_SELF"].'?propalid='.$propal->id.'&ligne='.$objp->rowid.'&action=confirm_deleteline&confirm=yes';
|
||||
print '<a href="#" onClick="dialogConfirm(\''.$url.'\',\''.$langs->trans('ConfirmDeleteProductLine').'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\')">';
|
||||
print '<a href="#" onClick="dialogConfirm(\''.$url.'\',\''.$langs->trans('ConfirmDeleteProductLine').'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\',\'deleteline'.$i.'\')">';
|
||||
print img_delete();
|
||||
}
|
||||
else
|
||||
@@ -1461,7 +1461,7 @@ if ($_GET['propalid'] > 0)
|
||||
if ($conf->use_ajax && $conf->global->MAIN_CONFIRM_AJAX)
|
||||
{
|
||||
$url = $_SERVER["PHP_SELF"].'?propalid='.$propal->id.'&action=confirm_validate&confirm=yes';
|
||||
print 'href="#" onClick="dialogConfirm(\''.$url.'\',\''.$langs->trans('ConfirmValidateProp').'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\')"';
|
||||
print 'href="#" onClick="dialogConfirm(\''.$url.'\',\''.$langs->trans('ConfirmValidateProp').'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\',\'validate\')"';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1526,7 +1526,7 @@ if ($_GET['propalid'] > 0)
|
||||
if ($conf->use_ajax && $conf->global->MAIN_CONFIRM_AJAX)
|
||||
{
|
||||
$url = $_SERVER["PHP_SELF"].'?propalid='.$propal->id.'&action=confirm_delete&confirm=yes';
|
||||
print 'href="#" onClick="dialogConfirm(\''.$url.'\',\''.$langs->trans('ConfirmDeleteProp').'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\')"';
|
||||
print 'href="#" onClick="dialogConfirm(\''.$url.'\',\''.$langs->trans('ConfirmDeleteProp').'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\',\'delete\')"';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -652,16 +652,17 @@ function cleanSerialize(expr) {
|
||||
|
||||
/*=================================================================
|
||||
Purpose: Affiche un message de confirmation
|
||||
Input: linkurl,message,ok,cancel
|
||||
Input: linkurl,message,ok,cancel,objectID
|
||||
Author: Regis Houssin
|
||||
Licence: GPL
|
||||
==================================================================*/
|
||||
function dialogConfirm(linkurl,message,ok,cancel) {
|
||||
function dialogConfirm(linkurl,message,ok,cancel,objectID) {
|
||||
Dialog.confirm(message, {
|
||||
width:300,
|
||||
okLabel: ok,
|
||||
cancelLabel: cancel,
|
||||
buttonClass: "button",
|
||||
id: objectID,
|
||||
cancel:function(win){},
|
||||
ok:function(win) {window.location.href=linkurl; return true;}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user