Browse Source

commented trace

Bachir Soussi Chiadmi 11 years ago
parent
commit
e1a04d9b8e
3 changed files with 5 additions and 5 deletions
  1. 2 2
      js/materio_search_api_ajax.js
  2. 1 1
      materio_search_api.module
  3. 2 2
      materio_search_api_ajax.pages.inc

+ 2 - 2
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){

+ 1 - 1
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 <strong>@count results</strong> with a '
     );
     $variables['search_performance'] .= l(t('full access to materiO\'.'), 'node/11187');
 

+ 2 - 2
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);