From: Andrew Dolgov Date: Tue, 11 Aug 2015 07:12:22 +0000 (+0300) Subject: unfuck catchupbatchedarticles a bit X-Git-Tag: 16.3~178 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b71add41d5d11df5b7dbef7d1069280d404f65f2;p=tt-rss.git unfuck catchupbatchedarticles a bit --- diff --git a/js/viewfeed.js b/js/viewfeed.js index 243e9983..e50e3dab 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1320,16 +1320,11 @@ function headlines_scroll_handler(e) { if (catchup_id_batch.length > 0) { window.clearTimeout(catchup_timeout_id); - if (!_infscroll_request_sent) { - if (catchup_id_batch.length < 10) { - catchup_timeout_id = window.setTimeout('catchupBatchedArticles()', - 500); - } else { - catchupBatchedArticles(); - } - } + catchup_timeout_id = window.setTimeout('catchupBatchedArticles()', 500); - catchupBatchedArticles(); + if (catchup_id_batch.length >= 10) { + catchupBatchedArticles(); + } } if (_infscroll_disable) {