Sfoglia il codice sorgente

restored ajax search for filtered search

Bachir Soussi Chiadmi 7 anni fa
parent
commit
8777adbe2e

File diff suppressed because it is too large
+ 0 - 0
sites/all/modules/gui/materiobasemod/js/dist/materio_search_api_ajax.min.js


+ 11 - 10
sites/all/modules/gui/materiobasemod/js/materio_search_api_ajax.js

@@ -35,15 +35,15 @@ MaterioSearchApiAjax = function(){
     });
 
     // filtered search form
-    // $('#materio-search-api-advanced-search-form').bind('submit', function(event) {
-    //   event.preventDefault();
-    //   // trace('advanced search submited', event);
-    //   // var $this = $(this);
-    //   setTimeout(function(){
-    //     loadResults(getSearchFilters(), 'advanced');
-    //   },10);
-    //   return false;
-    // });
+    $('#materio-search-api-advanced-search-form').bind('submit', function(event) {
+      event.preventDefault();
+      // trace('advanced search submited', event);
+      // var $this = $(this);
+      setTimeout(function(){
+        loadResults(getSearchFilters(), 'advanced');
+      },10);
+      return false;
+    });
 
     // /!\ AUTOCOMPLETE SELECT EVENT need a patch http://drupal.org/node/365241#comment-5374686
     $("#edit-searchfield")
@@ -89,7 +89,8 @@ MaterioSearchApiAjax = function(){
         // get the keys from select form items
         $selects.each(function(j, select) {
           if($(select).val() !== ""){
-            keys.push('"' + $("option:selected",select).text() + '"');
+            // keys.push('"' + $("option:selected",select).text() + '"');
+            keys.push($(select).val());
             return false;
           }
         });

Some files were not shown because too many files changed in this diff