aboutsummaryrefslogtreecommitdiffstats
path: root/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.js')
-rw-r--r--js/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/main.js b/js/main.js
index 9d764c74e..cd5040064 100644
--- a/js/main.js
+++ b/js/main.js
@@ -119,6 +119,7 @@
var next_page = 1;
var page_load = true;
var loadingPage = false;
+ var pageHasMoreContent = true;
$(function() {
$.ajaxSetup({cache: false});
@@ -984,7 +985,7 @@ $(window).scroll(function () {
}
if($(window).scrollTop() + $(window).height() == $(document).height()) {
- if(! loadingPage) {
+ if((pageHasMoreContent) && (! loadingPage)) {
$('#more').hide();
$('#no-more').hide();
// alert('scroll');