From e1a04d9b8ef40569a9ba073bbc826fc010368c22 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Fri, 6 Dec 2013 12:41:06 +0100 Subject: [PATCH] commented trace --- js/materio_search_api_ajax.js | 4 ++-- materio_search_api.module | 2 +- materio_search_api_ajax.pages.inc | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/materio_search_api_ajax.js b/js/materio_search_api_ajax.js index f95f21ee..4d8cc781 100755 --- a/js/materio_search_api_ajax.js +++ b/js/materio_search_api_ajax.js @@ -131,7 +131,7 @@ MaterioSearchApiAjax = function(){ }; function changeContent(json){ - trace('MaterioSearchApiAjax changeContent | json', json); + //trace('MaterioSearchApiAjax changeContent | json', json); if(json.returned){ $.event.trigger('loaded-content'); @@ -197,7 +197,7 @@ MaterioSearchApiAjax = function(){ }; function loadNextPage(url, keys, $container, target){ - //trace('MaterioSearchApiAjax :: loadNextPage()'); + // trace('MaterioSearchApiAjax :: loadNextPage()'); _isloadingresults = true; $container.addClass('loading'); $.getJSON(url, {'keys':keys}, function(json){ diff --git a/materio_search_api.module b/materio_search_api.module index 0b41b1a3..ad24f4ce 100755 --- a/materio_search_api.module +++ b/materio_search_api.module @@ -711,7 +711,7 @@ function template_preprocess_materio_search_api_results(array &$variables) { $variables['search_performance'] .= format_plural( $results['could results']['result count'], ' You could find 1 result with a ', - ' You could find @count results with a ' + ' You could find @count results with a ' ); $variables['search_performance'] .= l(t('full access to materiO\'.'), 'node/11187'); diff --git a/materio_search_api_ajax.pages.inc b/materio_search_api_ajax.pages.inc index 37042677..de3f0b4b 100755 --- a/materio_search_api_ajax.pages.inc +++ b/materio_search_api_ajax.pages.inc @@ -52,8 +52,8 @@ function materio_search_api_ajax_search($page = 0){ user_save($user, array("data"=>array('materiosearchapi_bundlesfilter' => $active_types))); + # if we are not already on the search page then don't respond with search results but redirect to search page if(isset($_GET['current_path'])){ - // dsm($_GET['current_path'], '$_GET[current_path]'); // url() generates the prefix using hook_url_outbound_alter(). Instead of // running the hook_url_outbound_alter() again here, extract the prefix // from url(). @@ -74,7 +74,7 @@ function materio_search_api_ajax_search($page = 0){ } // dsm($path, 'path'); - // get results + // execute the searcj path and retrive results menu_set_active_item($path); $return = menu_execute_active_handler($path, FALSE);