|
|
|
@ -172,7 +172,7 @@ $(function() {
|
|
|
|
|
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)
|
|
|
|
@ -183,10 +183,26 @@ $(function() {
|
|
|
|
|
//extraScrollPx: 300
|
|
|
|
|
});
|
|
|
|
|
$loadMore.on( "append.infiniteScroll", function( event, response, path, data ) {
|
|
|
|
|
$(".pagination").addClass("hidden");
|
|
|
|
|
if ($("body").hasClass("blur")) {
|
|
|
|
|
$(".pagination").addClass("hidden").html(() => $(response).find(".pagination").html());
|
|
|
|
|
}
|
|
|
|
|
$(".load-more .row").isotope( "appended", $(data), null );
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// fix for infinite scroll on CaliBlur Theme (#981)
|
|
|
|
|
if ($("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"));
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#restart").click(function() {
|
|
|
|
|
$.ajax({
|
|
|
|
|
dataType: "json",
|
|
|
|
|