From 1a9e4ae3318537cd86ac355c48c549b591ed10ce Mon Sep 17 00:00:00 2001 From: lBrieu Date: Tue, 30 Aug 2011 12:04:07 +0000 Subject: [PATCH] [+] Add handling for notifications in BO --- admin-dev/ajax.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/admin-dev/ajax.php b/admin-dev/ajax.php index f9f5c8c95..a3a387c3e 100644 --- a/admin-dev/ajax.php +++ b/admin-dev/ajax.php @@ -688,3 +688,15 @@ if (Tools::isSubmit('updateProductImageShopAsso')) Db::getInstance()->Execute('DELETE FROM '._DB_PREFIX_.'image_shop WHERE `id_image`='.(int)$id_image.' AND `id_shop`='.(int)$id_shop); } } + +if (Tools::isSubmit('getNotifications')) +{ + $notification = new Notification; + die(Tools::jsonEncode($notification->getLastElements())); +} + +if (Tools::isSubmit('updateElementEmployee') && Tools::getValue('updateElementEmployeeType')) +{ + $notification = new Notification; + die($notification->updateEmployeeLastElement(Tools::getValue('updateElementEmployeeType'))); +}