aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-02-23 14:40:18 +0100
committerMario <mario@mariovavti.com>2020-02-23 14:40:18 +0100
commit7bb94f999350dfdc2c2cdf5b5d094ef52953edd6 (patch)
tree42120efc03f16d1a393b171aeb0b9d7207db6d9d
parented28ef185e1e64b1666533d21df5de71741e5571 (diff)
parent1297c8d2ae248f9cbd0403cf2f361476e1f909cd (diff)
downloadvolse-hubzilla-7bb94f999350dfdc2c2cdf5b5d094ef52953edd6.tar.gz
volse-hubzilla-7bb94f999350dfdc2c2cdf5b5d094ef52953edd6.tar.bz2
volse-hubzilla-7bb94f999350dfdc2c2cdf5b5d094ef52953edd6.zip
Merge branch 'patch-20200221a' into 'dev'
Fix: hang on too few items See merge request hubzilla/core!1832
-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();