// toolbar 2nd part

This commit is contained in:
fBrignoli committed 2012-06-06 09:52:26 +00:00
1 parent e84c4a2dde
commit 458fe57ed5
1 file changed
+5 -1
@@ -91,15 +91,19 @@ class AdminShopGroupControllerCore extends AdminController
$this->list_simple_header = true; $this->list_simple_header = true;
parent::initContent(); parent::initContent();
if ($this->display == 'options')
{
unset($this->toolbar_btn); unset($this->toolbar_btn);
$this->toolbar_btn['new'] = array( $this->toolbar_btn['new'] = array(
'desc' => $this->l('Add new shop group'), 'desc' => $this->l('Add new shop group'),
'href' => self::$currentIndex.'&add'.$this->table.'&token='.$this->token, ); 'href' => self::$currentIndex.'&add'.$this->table.'&token='.$this->token,
);
$this->toolbar_btn['new_2'] = array( $this->toolbar_btn['new_2'] = array(
'desc' => $this->l('Add new shop'), 'desc' => $this->l('Add new shop'),
'href' => $this->context->link->getAdminLink('AdminShop').'&addshop', 'href' => $this->context->link->getAdminLink('AdminShop').'&addshop',
'imgclass' => 'new' 'imgclass' => 'new'
); );
}
$this->addJqueryPlugin('cooki'); $this->addJqueryPlugin('cooki');
$this->addJqueryPlugin('jstree'); $this->addJqueryPlugin('jstree');