[+] BO : Add Multiple Ajax Upload Image on AdminProduct

This commit is contained in:
rMontagne
2011-09-12 15:46:36 +00:00
parent a6a2df97ef
commit a78e7ecdb0
7 changed files with 1644 additions and 284 deletions
+10 -1
View File
@@ -68,7 +68,6 @@ class AdminCatalog extends AdminTab
$id_category = $shop->getCategory();
}
}
self::$_category = new Category($id_category);
if (!Validate::isLoadedObject(self::$_category))
die('Category cannot be loaded');
@@ -113,6 +112,16 @@ class AdminCatalog extends AdminTab
}
$this->adminProducts->postProcess($this->token);
}
public function ajaxProcess()
{
if (Tools::getValue('addImage') !== false)
$this->adminProducts->ajaxProcess();
if (Tools::getValue('updateProductImageShopAsso'))
$this->adminProducts->ajaxProcess();
if (Tools::getValue('deleteImage'))
$this->adminProducts->ajaxProcess();
}
public function displayErrors()
{