Only auto update when there is content

This commit is contained in:
Michael 2020-10-20 20:43:51 +00:00
parent 74305b3dc8
commit 1fc36c4470
8 changed files with 20 additions and 19 deletions

View file

@ -620,6 +620,12 @@ function liveUpdate(src) {
in_progress = false;
update_item = 0;
if (data.length < 100) {
// console.log('No data ' + data.length + ':' + data);
return;
}
// console.log('Got data: ' + data.length + ':' + data);
$('.wall-item-body', data).imagesLoaded(function() {
updateConvItems(data);