From f8c9517fbb246ca28f27ce38cec77aa069b53b67 Mon Sep 17 00:00:00 2001 From: Alex Dong Date: Thu, 7 Apr 2022 17:12:50 +0700 Subject: [PATCH] Fix conflict after Ajax --- view/frontend/templates/infinitescroll.phtml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/view/frontend/templates/infinitescroll.phtml b/view/frontend/templates/infinitescroll.phtml index d551143..3f7c97a 100644 --- a/view/frontend/templates/infinitescroll.phtml +++ b/view/frontend/templates/infinitescroll.phtml @@ -27,6 +27,9 @@ if ($loadingImage) { "use strict"; $(document).ready(function () { $('body').addClass('infinitescroll'); + if(jQuery().ias) { + $.ias('destroy'); + } window.ias = $.ias({ container: "", item: "",