[-] BO : fixed #PSCFV-2176 - missing confirmation when deleting product

This commit is contained in:
tDidierjean
2012-05-03 12:51:09 +00:00
parent b86cfebbf4
commit 79da53f097
2 changed files with 4 additions and 3 deletions
@@ -2039,13 +2039,14 @@ class AdminProductsControllerCore extends AdminController
'short' => 'Delete',
'href' => $this->context->link->getAdminLink('AdminProducts').'&id_product='.(int)$product->id.'&deleteproduct',
'desc' => $this->l('Delete this product'),
'confirm' => 1);
'confirm' => 1,
'js' => 'if (confirm('.$this->l('\'Delete product?\'').')){return true;}else{event.preventDefault();}'
);
// adding button for duplicate this product
if ($this->tabAccess['add'] && $this->display != 'add')
$this->toolbar_btn['duplicate'] = array(
'short' => 'Duplicate',
//'href' => $this->context->link->getAdminLink('AdminProducts').'&id_product='.$product->id.'&duplicateproduct',
'desc' => $this->l('Duplicate'),
'confirm' => 1,
'js' => 'if (confirm(\''.$this->l('Also copy images').' ?\')) document.location = \''.$this->context->link->getAdminLink('AdminProducts').'&id_product='.(int)$product->id.'&duplicateproduct\'; else document.location = \''.$this->context->link->getAdminLink('AdminProducts').'&id_product='.(int)$product->id.'&duplicateproduct&noimage=1\';'
+1 -1
View File
@@ -2106,7 +2106,6 @@ $_LANGADM['AdminOrders4ad439b4f7069964e258259e049fa90c'] = 'Remboursement standa
$_LANGADM['AdminOrders4b6c6cda10a23d1bdc920f2e47e5f46f'] = 'Ajouter un produit';
$_LANGADM['AdminOrders4b8def9be8f45a8d6baea36b26868965'] = 'Annuler les produits';
$_LANGADM['AdminOrders4cce03651d2ecba98c89991f3280a495'] = 'Un compte client utilisant cette adresse e-mail existe déjà';
$_LANGADM['AdminOrders4e64a6e77f548802235c788bb5718e95'] = 'Une fois le message lu, veuillez cliquer sur l\'encoche verte';
$_LANGADM['AdminOrders4fa1b6a18af39df2372766b93c513f85'] = 'Emballage recyclé :';
$_LANGADM['AdminOrders5068c162a60b5859f973f701333f45c5'] = 'Numéro de suivi';
$_LANGADM['AdminOrders50cd1871f950375eef4e2efce35366c6'] = 'Ajouter une note';
@@ -2843,6 +2842,7 @@ $_LANGADM['AdminProductsed75712b0eb1913c28a3872731ffd48d'] = 'Dupliquer';
$_LANGADM['AdminProductseed3651230e6fea831d760fe3686d4e6'] = 'Veuillez choisir un attribut';
$_LANGADM['AdminProductsf072da215c080d985d44361e96a3cf60'] = 'Refuser les commandes';
$_LANGADM['AdminProductsf107f5a9ee4ecea58d0f29ae7959baa8'] = 'Nom';
$_LANGADM['AdminProductsf240dcfa69d4647c8b2e7b44e7a2d490'] = 'Supprimer le produit ?';
$_LANGADM['AdminProductsf258ae7c40f58689780e219bc9a23608'] = 'Vous avez utilisé des déclinaisons, pour cette raison vous ne pouvez pas modifier votre fichier ici, mais dans l\'onglet \"Déclinaisons\"';
$_LANGADM['AdminProductsf2a6c498fb90ee345d997f888fce3b18'] = 'Supprimer';
$_LANGADM['AdminProductsf33c23efaf78aacff7c1cbc75f732865'] = 'Définissez les libellés des champs textes :';