|
@@ -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;
|
|
|
}
|
|
|
});
|