Fix: renommage des fonctions
This commit is contained in:
parent
1be5ff2f35
commit
545d8bd87d
@ -1167,7 +1167,7 @@ if ($_GET['propalid'] > 0)
|
||||
if ($conf->use_ajax)
|
||||
{
|
||||
$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();
|
||||
}
|
||||
else
|
||||
@ -1461,7 +1461,7 @@ if ($_GET['propalid'] > 0)
|
||||
if ($conf->use_ajax)
|
||||
{
|
||||
$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
|
||||
{
|
||||
@ -1510,7 +1510,7 @@ if ($_GET['propalid'] > 0)
|
||||
print '<a class="butAction" ';
|
||||
if ($conf->use_ajax)
|
||||
{
|
||||
print 'href="#" onClick="info($(\'confirm_close\').innerHTML)"'."\n";
|
||||
print 'href="#" onClick="dialogInfo($(\'confirm_close\').innerHTML)"'."\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1526,7 +1526,7 @@ if ($_GET['propalid'] > 0)
|
||||
if ($conf->use_ajax)
|
||||
{
|
||||
$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
|
||||
{
|
||||
|
||||
@ -656,7 +656,7 @@ function cleanSerialize(expr) {
|
||||
Author: Regis Houssin
|
||||
Licence: GPL
|
||||
==================================================================*/
|
||||
function confirmDelete(linkurl,message,ok,cancel) {
|
||||
function dialogConfirm(linkurl,message,ok,cancel) {
|
||||
Dialog.confirm(message, {
|
||||
width:300,
|
||||
okLabel: ok,
|
||||
@ -673,6 +673,6 @@ function confirmDelete(linkurl,message,ok,cancel) {
|
||||
Author: Regis Houssin
|
||||
Licence: GPL
|
||||
==================================================================*/
|
||||
function info(message) {
|
||||
function dialogInfo(message) {
|
||||
Dialog.info(message, {width:700});
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user