Skip to content

Commit

Permalink
Fix conflict after Ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
magiccart committed Apr 7, 2022
1 parent 3f7d9c1 commit f8c9517
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions view/frontend/templates/infinitescroll.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ if ($loadingImage) {
"use strict";
$(document).ready(function () {
$('body').addClass('infinitescroll');
if(jQuery().ias) {
$.ias('destroy');
}
window.ias = $.ias({
container: "<?= $content ?>",
item: "<?= $item ?>",
Expand Down

0 comments on commit f8c9517

Please sign in to comment.