1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-09-28 07:08:22 +00:00

better js check

This commit is contained in:
Ghighi Eftimie 2020-10-10 18:34:55 +03:00
parent cedfa90d76
commit f574f8faf0

View File

@ -172,7 +172,7 @@ $(function() {
layoutMode : "fitColumns"
});
if ($('.next').length) {
var $loadMore = $(".load-more .row").infiniteScroll({
debug: false,
// selector for the paged navigation (it will be hidden)
@ -188,7 +188,7 @@ $(function() {
});
// fix for infinite scroll on CaliBlur Theme (#981)
if ($(".load-more .row").length && $("body").hasClass("blur")) {
if ($("body").hasClass("blur")) {
$(".col-sm-10").bind("scroll", function () {
if (
$(this).scrollTop() + $(this).innerHeight() >=
@ -199,6 +199,7 @@ $(function() {
}
});
}
}
$("#restart").click(function() {
$.ajax({