aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2020-02-23 14:40:18 +0100
committerMario <mario@mariovavti.com>2020-02-23 14:40:18 +0100
commit1297c8d2ae248f9cbd0403cf2f361476e1f909cd (patch)
tree42120efc03f16d1a393b171aeb0b9d7207db6d9d
parented28ef185e1e64b1666533d21df5de71741e5571 (diff)
downloadvolse-hubzilla-1297c8d2ae248f9cbd0403cf2f361476e1f909cd.tar.gz
volse-hubzilla-1297c8d2ae248f9cbd0403cf2f361476e1f909cd.tar.bz2
volse-hubzilla-1297c8d2ae248f9cbd0403cf2f361476e1f909cd.zip
Fix: hang on too few items
-rw-r--r--view/js/main.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index e735e9d6b..94fd940b2 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -581,8 +581,10 @@ function contextualHelpFocus(target, openSidePanel) {
function updatePageItems(mode, data) {
if(mode === 'append') {
+ newitemcount = 0;
$(data).each(function() {
$('#page-end').before($(this));
+ newitemcount++;
});
if(loadingPage) {
@@ -593,6 +595,10 @@ function updatePageItems(mode, data) {
var e = document.getElementById('content-complete');
if(e) {
pageHasMoreContent = false;
+ } else {
+ if (newitemcount < 1) {
+ pageUpdate();
+ }
}
collapseHeight();