/ Published in: jQuery

Get the ajax complete event after filtering a view content in drupal
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(function($) { Drupal.behaviors.events = { attach: function(context, settings) { $('#view-id', context).ajaxStart(function(){ $('#views-exposed-form-events-page,div.view-id-events', context).fadeTo(300, 0.5); }); $('#view-id', context).ajaxSuccess(function(){ $('#views-exposed-form-events-page', context).fadeTo(300, 1.0); $('div.view-id-events', context).css('opacity', 0.5).fadeTo(300, 1.0); }); } }; })(jQuery);
Comments
