[-] CORE : fixed some bad include of jquery plugin

This commit is contained in:
vAugagneur
2012-11-23 16:35:57 +01:00
parent 3664925fb9
commit 0e0ca2a473
4 changed files with 15 additions and 12 deletions
@@ -48,6 +48,12 @@ class AdminCartRulesControllerCore extends AdminController
parent::__construct();
}
public function setMedia()
{
parent::setMedia();
$this->addJqueryPlugin(array('typewatch', 'fancybox', 'autocomplete'));
}
public function postProcess()
{
if (Tools::isSubmit('submitAddcart_rule') || Tools::isSubmit('submitAddcart_ruleAndStay'))
@@ -465,13 +471,6 @@ class AdminCartRulesControllerCore extends AdminController
'desc' => $this->l('Save and Stay')
);
// Todo: change for "Media" version
$this->addJs(_PS_JS_DIR_.'jquery/plugins/jquery.typewatch.js');
$this->addJs(_PS_JS_DIR_.'jquery/plugins/fancybox/jquery.fancybox.js');
$this->addJs(_PS_JS_DIR_.'jquery/plugins/autocomplete/jquery.autocomplete.js');
$this->addCss(_PS_JS_DIR_.'jquery/plugins/fancybox/jquery.fancybox.css');
$this->addCss(_PS_JS_DIR_.'jquery/plugins/autocomplete/jquery.autocomplete.css');
$current_object = $this->loadObject(true);
// All the filter are prefilled with the correct information