Commit 9adcfa99 authored by Ghighi Eftimie's avatar Ghighi Eftimie

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

parent e723aaa5
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment