Reply To: Cant open iFrame after using filter

Your Account / Forums / Easy FancyBox Pro / Cant open iFrame after using filter / Reply To: Cant open iFrame after using filter

August 7, 2018 at 9:21 pm #12467

OK, wait… I might have found a way but you’ll need to add this script to the page:


(function($){
  $(document).ready(function(){
    window.fancybox_pb_jt_filterable_grid_init = function(){
      $(".et_pb_jt_filterable_grid_container").each(function(){
        var observer = new MutationObserver(function(mutations){
          $(document).trigger('post-load');
        });
        var config = { attributes: true, childList: true, characterData: true };
        observer.observe(this, config);
      });
    }
    if ( window.et_load_event_fired ) {
      window.fancybox_pb_jt_filterable_grid_init();
    } else {
      $(window).load(function(){
        window.fancybox_pb_jt_filterable_grid_init();
      });
    }
  });
})(jQuery);