fix for #981
This commit is contained in:
parent
b4f95cced7
commit
cedfa90d76
3 changed files with 17 additions and 4 deletions
|
@ -637,18 +637,18 @@ 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;
|
||||||
left: auto !important;
|
left: auto !important;
|
||||||
top: auto !important;
|
top: auto !important;
|
||||||
-webkit-transform: none !important;
|
-webkit-transform: none !important;
|
||||||
-ms-transform: none !important;
|
-ms-transform: none !important;
|
||||||
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
|
||||||
|
|
|
@ -187,6 +187,19 @@ $(function() {
|
||||||
$(".load-more .row").isotope( "appended", $(data), null );
|
$(".load-more .row").isotope( "appended", $(data), null );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// fix for infinite scroll on CaliBlur Theme (#981)
|
||||||
|
if ($(".load-more .row").length && $("body").hasClass("blur")) {
|
||||||
|
$(".col-sm-10").bind("scroll", function () {
|
||||||
|
if (
|
||||||
|
$(this).scrollTop() + $(this).innerHeight() >=
|
||||||
|
$(this)[0].scrollHeight
|
||||||
|
) {
|
||||||
|
$loadMore.infiniteScroll("loadNextPage");
|
||||||
|
window.history.replaceState({}, null, $loadMore.infiniteScroll('getAbsolutePath')+1)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$("#restart").click(function() {
|
$("#restart").click(function() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
|
|
@ -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 a new issue