Ajax Scripts clashing
-
I am filtering a listing grid with an ajax filtering plugin called facetWP and once the filter completes, the favorite buttons disappear. I am aware of the facetWP callback function that gets called after some filtering occurs(‘facetwp-loaded’) but I don’t know what function I need to initialise from Favorites point of view so that I can refresh the favorite buttons once the filter has changed.
I tried enqueuing a script like this:
jQuery(document).ready(function($){ $(document).on('facetwp-loaded', function() { if (FWP.loaded) { // after initial pageload new Favorites; // also tried Favorites() } }); });but it didn’t work.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Ajax Scripts clashing’ is closed to new replies.