• Resolved George

    (@quantum_leap)


    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.

    https://ww.wp.xz.cn/plugins/favorites/

Viewing 1 replies (of 1 total)
  • Thread Starter George

    (@quantum_leap)

    Issue is resolved, I was only including the script on the frontend, it needed to be included also in the backend!

Viewing 1 replies (of 1 total)

The topic ‘Ajax Scripts clashing’ is closed to new replies.