trigger infinite scroll script only on templates where .load-more class is present

pull/1655/head
Ghighi Eftimie 4 years ago
parent e723aaa5f6
commit 9adcfa99f4

@ -172,7 +172,7 @@ $(function() {
layoutMode : "fitColumns" layoutMode : "fitColumns"
}); });
if ($('.next').length) { if ($(".load-more").length && $(".next").length) {
var $loadMore = $(".load-more .row").infiniteScroll({ var $loadMore = $(".load-more .row").infiniteScroll({
debug: false, debug: false,
// selector for the paged navigation (it will be hidden) // selector for the paged navigation (it will be hidden)

Loading…
Cancel
Save