mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 16:12:39 +01:00
Fix: renommage des fonctions
This commit is contained in:
@@ -1167,7 +1167,7 @@ if ($_GET['propalid'] > 0)
|
|||||||
if ($conf->use_ajax)
|
if ($conf->use_ajax)
|
||||||
{
|
{
|
||||||
$url = $_SERVER["PHP_SELF"].'?propalid='.$propal->id.'&ligne='.$objp->rowid.'&action=confirm_deleteline&confirm=yes';
|
$url = $_SERVER["PHP_SELF"].'?propalid='.$propal->id.'&ligne='.$objp->rowid.'&action=confirm_deleteline&confirm=yes';
|
||||||
print '<a href="#" onClick="confirmDelete(\''.$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").'\')">';
|
||||||
print img_delete();
|
print img_delete();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -1461,7 +1461,7 @@ if ($_GET['propalid'] > 0)
|
|||||||
if ($conf->use_ajax)
|
if ($conf->use_ajax)
|
||||||
{
|
{
|
||||||
$url = $_SERVER["PHP_SELF"].'?propalid='.$propal->id.'&action=confirm_validate&confirm=yes';
|
$url = $_SERVER["PHP_SELF"].'?propalid='.$propal->id.'&action=confirm_validate&confirm=yes';
|
||||||
print 'href="#" onClick="confirmDelete(\''.$url.'\',\''.$langs->trans('ConfirmValidateProp').'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\')"';
|
print 'href="#" onClick="dialogConfirm(\''.$url.'\',\''.$langs->trans('ConfirmValidateProp').'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\')"';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1510,7 +1510,7 @@ if ($_GET['propalid'] > 0)
|
|||||||
print '<a class="butAction" ';
|
print '<a class="butAction" ';
|
||||||
if ($conf->use_ajax)
|
if ($conf->use_ajax)
|
||||||
{
|
{
|
||||||
print 'href="#" onClick="info($(\'confirm_close\').innerHTML)"'."\n";
|
print 'href="#" onClick="dialogInfo($(\'confirm_close\').innerHTML)"'."\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1526,7 +1526,7 @@ if ($_GET['propalid'] > 0)
|
|||||||
if ($conf->use_ajax)
|
if ($conf->use_ajax)
|
||||||
{
|
{
|
||||||
$url = $_SERVER["PHP_SELF"].'?propalid='.$propal->id.'&action=confirm_delete&confirm=yes';
|
$url = $_SERVER["PHP_SELF"].'?propalid='.$propal->id.'&action=confirm_delete&confirm=yes';
|
||||||
print 'href="#" onClick="confirmDelete(\''.$url.'\',\''.$langs->trans('ConfirmDeleteProp').'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\')"';
|
print 'href="#" onClick="dialogConfirm(\''.$url.'\',\''.$langs->trans('ConfirmDeleteProp').'\',\''.$langs->trans("Yes").'\',\''.$langs->trans("No").'\')"';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -656,7 +656,7 @@ function cleanSerialize(expr) {
|
|||||||
Author: Regis Houssin
|
Author: Regis Houssin
|
||||||
Licence: GPL
|
Licence: GPL
|
||||||
==================================================================*/
|
==================================================================*/
|
||||||
function confirmDelete(linkurl,message,ok,cancel) {
|
function dialogConfirm(linkurl,message,ok,cancel) {
|
||||||
Dialog.confirm(message, {
|
Dialog.confirm(message, {
|
||||||
width:300,
|
width:300,
|
||||||
okLabel: ok,
|
okLabel: ok,
|
||||||
@@ -673,6 +673,6 @@ function confirmDelete(linkurl,message,ok,cancel) {
|
|||||||
Author: Regis Houssin
|
Author: Regis Houssin
|
||||||
Licence: GPL
|
Licence: GPL
|
||||||
==================================================================*/
|
==================================================================*/
|
||||||
function info(message) {
|
function dialogInfo(message) {
|
||||||
Dialog.info(message, {width:700});
|
Dialog.info(message, {width:700});
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user