From b71add41d5d11df5b7dbef7d1069280d404f65f2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 11 Aug 2015 10:12:22 +0300 Subject: [PATCH] unfuck catchupbatchedarticles a bit --- js/viewfeed.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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) { -- 2.39.2