mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 20:39:59 +00:00
Merge remote-tracking branch 'caliblur/issue/caliblur-981' into master
This commit is contained in:
commit
87d60308f2
@ -637,7 +637,7 @@ div[aria-label="Edit/Delete book"] > .btn > span:hover {
|
|||||||
color: var(--color-primary)
|
color: var(--color-primary)
|
||||||
}
|
}
|
||||||
|
|
||||||
.book {
|
/* .book {
|
||||||
width: 225px;
|
width: 225px;
|
||||||
max-width: 225px;
|
max-width: 225px;
|
||||||
position: relative !important;
|
position: relative !important;
|
||||||
@ -648,7 +648,7 @@ div[aria-label="Edit/Delete book"] > .btn > span:hover {
|
|||||||
transform: none !important;
|
transform: none !important;
|
||||||
min-width: 225px;
|
min-width: 225px;
|
||||||
display: block
|
display: block
|
||||||
}
|
} */
|
||||||
|
|
||||||
#infscr-loading img, body > div.container-fluid > div > div.col-sm-10 > div.discover > div.isotope:after, body > div.container-fluid > div > div.col-sm-10 > div.discover > div.isotope:before {
|
#infscr-loading img, body > div.container-fluid > div > div.col-sm-10 > div.discover > div.isotope:after, body > div.container-fluid > div > div.col-sm-10 > div.discover > div.isotope:before {
|
||||||
display: none
|
display: none
|
||||||
|
@ -172,20 +172,36 @@ $(function() {
|
|||||||
layoutMode : "fitColumns"
|
layoutMode : "fitColumns"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if ($(".load-more").length && $(".next").length) {
|
||||||
|
var $loadMore = $(".load-more .row").infiniteScroll({
|
||||||
|
debug: false,
|
||||||
|
// selector for the paged navigation (it will be hidden)
|
||||||
|
path : ".next",
|
||||||
|
// selector for the NEXT link (to page 2)
|
||||||
|
append : ".load-more .book"
|
||||||
|
//animate : true, # ToDo: Reenable function
|
||||||
|
//extraScrollPx: 300
|
||||||
|
});
|
||||||
|
$loadMore.on( "append.infiniteScroll", function( event, response, path, data ) {
|
||||||
|
if ($("body").hasClass("blur")) {
|
||||||
|
$(".pagination").addClass("hidden").html(() => $(response).find(".pagination").html());
|
||||||
|
}
|
||||||
|
$(".load-more .row").isotope( "appended", $(data), null );
|
||||||
|
});
|
||||||
|
|
||||||
var $loadMore = $(".load-more .row").infiniteScroll({
|
// fix for infinite scroll on CaliBlur Theme (#981)
|
||||||
debug: false,
|
if ($("body").hasClass("blur")) {
|
||||||
// selector for the paged navigation (it will be hidden)
|
$(".col-sm-10").bind("scroll", function () {
|
||||||
path : ".next",
|
if (
|
||||||
// selector for the NEXT link (to page 2)
|
$(this).scrollTop() + $(this).innerHeight() >=
|
||||||
append : ".load-more .book"
|
$(this)[0].scrollHeight
|
||||||
//animate : true, # ToDo: Reenable function
|
) {
|
||||||
//extraScrollPx: 300
|
$loadMore.infiniteScroll("loadNextPage");
|
||||||
});
|
window.history.replaceState({}, null, $loadMore.infiniteScroll("getAbsolutePath"));
|
||||||
$loadMore.on( "append.infiniteScroll", function( event, response, path, data ) {
|
}
|
||||||
$(".pagination").addClass("hidden");
|
});
|
||||||
$(".load-more .row").isotope( "appended", $(data), null );
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
$("#restart").click(function() {
|
$("#restart").click(function() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -166,7 +166,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if pagination.has_next %}
|
{% if pagination.has_next %}
|
||||||
<li class="page-item page-next"><a class="page-link" aria-label="next page" href="{{ (pagination.page + 1)|url_for_other_page
|
<li class="page-item page-next"><a class="page-link next" aria-label="next page" href="{{ (pagination.page + 1)|url_for_other_page
|
||||||
}}">{{_('Next')}} »</a></li>
|
}}">{{_('Next')}} »</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user