From 391fea452cdd80325fc862b6c8bfa9ae53ef5896 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10529 b9a71923-0436-4b27-9f14-aed3839534dd --- 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'); }