- This topic has 2 replies, 2 voices, and was last updated 8 years, 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
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 › Updating other JS after filtering
Hi,
I am using the matchheight js library to display my posts in a grid, but after filtering the heights are lost.
I assume I need to call…
$.fn.matchHeight._update()
… to trigger an update after the filtering is complete. How can I achieve this? Is there a JS API function I can use?
You can see the behaviour here – https://careleaverpp.org/resources (filter using the bottom option – websites).
Thanks in advance,
Tony.
If you are doing a page refresh then you would need to add javascript to the page, like this:
(function ( $ ) {
"use strict";
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
console.log("ajax complete");
// your js here
});
}(jQuery));