1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-06-23 13:43:17 +00:00

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

This commit is contained in:
Ghighi Eftimie 2020-10-11 22:35:56 +03:00
parent e723aaa5f6
commit 9adcfa99f4

View File

@ -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)