aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 919a569bd..c8da3c4eb 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -409,10 +409,6 @@
function updatePageItems(mode,data) {
- var e = data.getElementById('content-complete');
- if(e) {
- pageHasMoreContent = false;
- }
if(mode === 'append') {
$(data).each(function() {
@@ -423,6 +419,12 @@ function updatePageItems(mode,data) {
loadingPage = false;
}
}
+
+ var e = document.getElementById('content-complete');
+ if(e) {
+ pageHasMoreContent = false;
+ }
+
}