I need a tutorial on how to run a piece of javascript after the AJAX form of a views exposed filter group submits.
The problem is with using the Dropkick javascript plugin to style some dropdowns. The Drupal Dropkick seems to do a half-decent job of implementing this on the initial form, but after AJAX submit the dropdowns lose their styling.
If it helps, here's a copy of the Drupal Dropkick module js:
(function($) {
Drupal.behaviors.dropkick = {
attach: function(context) {
$(Drupal.settings.dropkick.selector, context)
.not('#field-ui-field-overview-form select, #field-ui-display-overview-form select') //disable dropkick on field ui
.each(function() {
$(this).addClass('dk-active').dropkick({
change: function(value, label){
$(this).change();
}
});
});
//add clearfix to parent .form-item to fix floats
$('.dk_container').parents('.form-item').addClass('clearfix');
}
}
})(jQuery);
Any thoughts?