Forums Forums Search & Filter Pro AJAX Pagination Blocking Other JS?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Ross Moderator
    #20198

    Hi Amber

    What is happening is your JS is being applied to your view switcher, but then a search or pagination interaction will load in new results, and a new copy of your view switcher.

    This newly loaded view switcher doesn’t have any JS assosciated with it so you must reinitialise your view switcher once the results have been loaded in via Ajax.

    To do this there is a jQuery event to hook into – check the first question on the FAQs – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/

    Thanks

    Anonymous
    #20199

    Thanks, I ended up fixing it by binding it differently with:

    $(‘.cabin-listings-container’).on(‘click’, ‘#grid-view’, function(e)

    Ross Moderator
    #20226

    Ah yes that is another good approach 🙂

Viewing 3 posts - 1 through 3 (of 3 total)