mirror of
https://github.com/janeczku/calibre-web
synced 2025-09-03 19:37:58 +00:00
trigger infinite scroll script only on templates where .load-more class is present
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user