From 458fe57ed54d246be6161918ce2249f5d1ee6e7d Mon Sep 17 00:00:00 2001 From: fBrignoli Date: Wed, 6 Jun 2012 09:52:26 +0000 Subject: [PATCH] // toolbar 2nd part --- .../admin/AdminShopGroupController.php | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/controllers/admin/AdminShopGroupController.php b/controllers/admin/AdminShopGroupController.php index 40ae9bdff..e1e8ba601 100644 --- a/controllers/admin/AdminShopGroupController.php +++ b/controllers/admin/AdminShopGroupController.php @@ -91,15 +91,19 @@ class AdminShopGroupControllerCore extends AdminController $this->list_simple_header = true; parent::initContent(); - unset($this->toolbar_btn); - $this->toolbar_btn['new'] = array( - 'desc' => $this->l('Add new shop group'), - 'href' => self::$currentIndex.'&add'.$this->table.'&token='.$this->token, ); - $this->toolbar_btn['new_2'] = array( - 'desc' => $this->l('Add new shop'), - 'href' => $this->context->link->getAdminLink('AdminShop').'&addshop', - 'imgclass' => 'new' - ); + if ($this->display == 'options') + { + unset($this->toolbar_btn); + $this->toolbar_btn['new'] = array( + 'desc' => $this->l('Add new shop group'), + 'href' => self::$currentIndex.'&add'.$this->table.'&token='.$this->token, + ); + $this->toolbar_btn['new_2'] = array( + 'desc' => $this->l('Add new shop'), + 'href' => $this->context->link->getAdminLink('AdminShop').'&addshop', + 'imgclass' => 'new' + ); + } $this->addJqueryPlugin('cooki'); $this->addJqueryPlugin('jstree');