// Remove deprecated calls to Tools::addJS/CSS in modules

This commit is contained in:
tDidierjean committed 2011-11-22 09:24:56 +00:00
1 parent c340b2d9df
commit 5ad28daf47
3 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -201,7 +201,7 @@ class authorizeAIM extends PaymentModule
public function hookHeader() public function hookHeader()
{ {
Tools::addJS(_PS_JS_DIR_.'jquery/jquery.validate.creditcard2-1.0.1.js'); $this->context->controller->addJS(_PS_JS_DIR_.'jquery/jquery.validate.creditcard2-1.0.1.js');
} }
/** /**
+5 -5
View File
@@ -1057,11 +1057,11 @@ class BlockLayered extends Module
if (!empty($metaKeyWordsComplement)) if (!empty($metaKeyWordsComplement))
$smarty->assign('meta_keywords', rtrim($categoryTitle.', '.$metaKeyWordsComplement.', '.$categoryMetas['meta_keywords'], ', ')); $smarty->assign('meta_keywords', rtrim($categoryTitle.', '.$metaKeyWordsComplement.', '.$categoryMetas['meta_keywords'], ', '));
Tools::addJS(($this->_path).'blocklayered.js'); $this->context->controller->addJS(($this->_path).'blocklayered.js');
Tools::addJS(_PS_JS_DIR_.'jquery/jquery-ui-1.8.10.custom.min.js'); $this->context->controller->addJS(_PS_JS_DIR_.'jquery/jquery-ui-1.8.10.custom.min.js');
Tools::addCSS(_PS_CSS_DIR_.'jquery-ui-1.8.10.custom.css', 'all'); $this->context->controller->addCSS(_PS_CSS_DIR_.'jquery-ui-1.8.10.custom.css', 'all');
Tools::addCSS(($this->_path).'blocklayered.css', 'all'); $this->context->controller->addCSS(($this->_path).'blocklayered.css', 'all');
Tools::addJS(_PS_JS_DIR_.'jquery/jquery.scrollTo-1.4.2-min.js'); $this->context->controller->addCSS(_PS_JS_DIR_.'jquery/jquery.scrollTo-1.4.2-min.js');
} }
public function hookFooter($params) public function hookFooter($params)
+2 -2
View File
@@ -133,8 +133,8 @@ class ProductToolTip extends Module
public function hookHeader($params) public function hookHeader($params)
{ {
Tools::addCSS(__PS_BASE_URI__.'css/jquery.jgrowl.css', 'all'); $this->context->controller->addCSS(__PS_BASE_URI__.'css/jquery.jgrowl.css', 'all');
Tools::addJS(__PS_BASE_URI__.'js/jquery/jquery.jgrowl-1.2.1.min.js'); $this->context->controller->addJS(__PS_BASE_URI__.'js/jquery/jquery.jgrowl-1.2.1.min.js');
} }
public function hookProductFooter($params) public function hookProductFooter($params)