// Remove deprecated calls to Tools::addJS/CSS in modules
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10388 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user