From d5680f3b27bdd2b470d702febbeff97a28dfd48c Mon Sep 17 00:00:00 2001 From: lLefevre Date: Wed, 23 Nov 2011 13:58:23 +0000 Subject: [PATCH] // fix added autocomplete in module blocksearch --- modules/blocksearch/blocksearch.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/blocksearch/blocksearch.php b/modules/blocksearch/blocksearch.php index bed5c987d..60c9f6939 100644 --- a/modules/blocksearch/blocksearch.php +++ b/modules/blocksearch/blocksearch.php @@ -54,10 +54,7 @@ class BlockSearch extends Module public function hookHeader($params) { if (Configuration::get('PS_SEARCH_AJAX')) - { - $this->context->controller->addCSS(_PS_CSS_DIR_.'jquery.autocomplete.css'); - $this->context->controller->addJS(_PS_JS_DIR_.'jquery/jquery.autocomplete.js'); - } + $this->context->controller->addJqueryPlugin('autocomplete'); $this->context->controller->addCSS(_THEME_CSS_DIR_.'product_list.css'); $this->context->controller->addCSS(($this->_path).'blocksearch.css', 'all'); }