trigger infinite scroll script only on templates where .load-more class is present
This commit is contained in:
parent
e723aaa5f6
commit
9adcfa99f4
|
@ -172,7 +172,7 @@ $(function() {
|
|||
layoutMode : "fitColumns"
|
||||
});
|
||||
|
||||
if ($('.next').length) {
|
||||
if ($(".load-more").length && $(".next").length) {
|
||||
var $loadMore = $(".load-more .row").infiniteScroll({
|
||||
debug: false,
|
||||
// selector for the paged navigation (it will be hidden)
|
||||
|
|
Loading…
Reference in New Issue
Block a user