diff options
author | Andrew Dolgov <[email protected]> | 2015-08-11 10:12:22 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-08-11 10:12:22 +0300 |
commit | b71add41d5d11df5b7dbef7d1069280d404f65f2 (patch) | |
tree | 5b3c58e83a7d362d577c1e4cc747621b08f6422e /js/viewfeed.js | |
parent | 8292123ebc805da990f7f1a1b0ebb2b3e1508cec (diff) |
unfuck catchupbatchedarticles a bit
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r-- | js/viewfeed.js | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index 243e9983b..e50e3dab8 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) { |