// toolbar 2nd part

This commit is contained in:
fBrignoli
2012-06-06 09:52:26 +00:00
parent e84c4a2dde
commit 458fe57ed5
+13 -9
View File
@@ -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');