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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8508 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMontagne
2011-09-12 15:46:36 +00:00
parent 4bacf38897
commit 9fbc821f61
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()
{