I have this code in a javascript file to hide some search filters...
$('#views-exposed-form-faceted-search-page .form-type-select').once().hide();
The user can toggle the visibility of the filters by clicking on my #advanced-search link...
$('#views-exposed-form-faceted-search-page #advanced-search a').once('advanced_search').click(function(){
$('#views-exposed-form-faceted-search-page .form-type-select').toggle();
});
It works, but when the AJAX form is submitted, the hide() function runs again and the .form-type-select elements are hidden. How do I prevent them from being hidden a second time? I only want my code to hide the selects when the page first loads.
Drupal.behaviours