ajaxdrupal-7viewdrupal-exposed-filter

Drupal 7. Hide exposed form after ajax submit


How hide filter exposed form after success send? Form in block and work with ajax. Help pleace.


Solution

  • Resolved! :)

    (function ($) {
    Drupal.behaviors.betterExposedFilters = {
       attach: function(context, settings) {	 
          $(document).ajaxComplete(function(event, jqXHR, settings) {
            $('.view-filters').hide();
          });
      }}
    })(jQuery);

    Thanks Matoeil!