- This topic has 12 replies, 3 voices, and was last updated 7 years, 3 months ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Combining shortcode, infinite scroll & masonry
Hi there
Depending on where & how you load your JS, you might need to wrap the above code like:
//depending on where you add your JS, sometimes its necessary to wrap the above events in a function (as is standard practice):
(function ( $ ) {
"use strict";
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
console.log("ajax complete");
});
}(jQuery));
Let me know how you get on.
Thanks