From 2ff286b672f7f3e04a1bfdd6a677ed8906d3d1cf Mon Sep 17 00:00:00 2001 From: Ghighi Date: Fri, 16 Oct 2020 00:43:57 +0300 Subject: [PATCH] natural solution, pagination is changing on new page --- cps/static/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cps/static/js/main.js b/cps/static/js/main.js index c1f58b7f..f2d7b929 100644 --- a/cps/static/js/main.js +++ b/cps/static/js/main.js @@ -183,7 +183,9 @@ $(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 ); });