window.almFilterComplete not firing on version 5.2.0
-
window.almFilterComplete stopped firing when we updated to 5.2.0.
window.almFilterComplete working on 5.1.7.2 so we downgraded on that version for the meantime. Here’s our filter code.
var alm_is_animating = false; // Animating flag (function( $ ) { $(document).ready(function() { var almList = $('.alm-filter-list'); // Animating flag // Btn Click Event almList.find('li a').on('click', function(event) { event.preventDefault(); var el = $(this); $('.alm-listing.alm-ajax').css('height', 'auto'); if ( !el.hasClass('current-filter') && !alm_is_animating ) { // Check for active and !alm_is_animating alm_is_animating = true; el.parent().addClass('current-filter').siblings('li').removeClass('current-filter'); // Add active state var data = el.data(), // Get data values from selected menu item transition = 'masonry', speed = '300'; //in milliseconds ajaxloadmore.filter( transition, speed, data ); // Run the filter console.log('Filter Executed'); } }); }); })(jQuery); window.almFilterComplete = function() { alm_is_animating = false; // clear animating flag console.log('almFilterComplete Executed'); };
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘window.almFilterComplete not firing on version 5.2.0’ is closed to new replies.