Skip to content

Commit f8c9517

Browse files
committed
Fix conflict after Ajax
1 parent 3f7d9c1 commit f8c9517

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

view/frontend/templates/infinitescroll.phtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ if ($loadingImage) {
2727
"use strict";
2828
$(document).ready(function () {
2929
$('body').addClass('infinitescroll');
30+
if(jQuery().ias) {
31+
$.ias('destroy');
32+
}
3033
window.ias = $.ias({
3134
container: "<?= $content ?>",
3235
item: "<?= $item ?>",

0 commit comments

Comments
 (0)