// delete multiple button save in AdminStatsTabController and added juery ui datepicker

This commit is contained in:
lLefevre
2011-11-22 16:36:10 +00:00
parent 73b53c029a
commit dacb4f7eb4
3 changed files with 16 additions and 37 deletions
@@ -160,26 +160,6 @@ class AdminReferrersControllerCore extends AdminController
$this->_group = 'GROUP BY sa.id_referrer';
$this->toolbar_btn['save-calendar'] = array(
'href' => '#',
'desc' => $this->l('Save Calendar')
);
$this->toolbar_btn['save-settings'] = array(
'href' => '#',
'desc' => $this->l('Save Settings')
);
$this->toolbar_btn['refresh-index'] = array(
'href' => '#',
'desc' => $this->l('Refresh Index')
);
$this->toolbar_btn['refresh-cache'] = array(
'href' => '#',
'desc' => $this->l('Refresh Cache')
);
$this->tpl_list_vars = array(
'enable_calendar' => $this->enableCalendar(),
'calendar_form' => $this->displayCalendar(),
@@ -419,11 +399,6 @@ class AdminReferrersControllerCore extends AdminController
public function initView()
{
$this->toolbar_btn['save-calendar'] = array(
'href' => '#',
'desc' => $this->l('Save Calendar')
);
$referrer = new Referrer((int)Tools::getValue('id_referrer'));
$display_tab = array(
+2 -10
View File
@@ -38,16 +38,6 @@ abstract class AdminStatsTabControllerCore extends AdminPreferencesControllerCor
{
$this->toolbar_title = $this->l('Stats');
$this->toolbar_btn['save-calendar'] = array(
'href' => '#',
'desc' => $this->l('Save Calendar')
);
$this->toolbar_btn['save-settings'] = array(
'href' => '#',
'desc' => $this->l('Save Settings')
);
if ($this->display == 'view')
{
// Some controllers use the view action without an object
@@ -86,6 +76,8 @@ abstract class AdminStatsTabControllerCore extends AdminPreferencesControllerCor
$context = Context::getContext();
$tpl = $context->smarty->createTemplate('stats/calendar.tpl');
$context->controller->addJqueryUI('ui.datepicker');
$tpl->assign(array(
'current' => self::$currentIndex,
'token' => $token,