Posted
by
Forums › Forums › Search & Filter Pro › Wrong results showing – Woocommerce
Hey Fredrik
If you are looking for a JS event for when the search has finished / ajax has loaded then take a look at the first question on the FAQs – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/
What you need is:
//detects when the ajax request has finished and the content has been updated
// - add scripts that apply to your results here
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
console.log("ajax complete");
//so load your lightbox or JS scripts here again
});
๐