]> git.wh0rd.org - tt-rss.git/commitdiff
unfuck catchupbatchedarticles a bit
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 11 Aug 2015 07:12:22 +0000 (10:12 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 11 Aug 2015 07:12:22 +0000 (10:12 +0300)
js/viewfeed.js

index 243e9983bc33dbf9a92fa7973ce3ba1c3addfee4..e50e3dab8be1af4449fd1ddbd17614ca4454d091 100644 (file)
@@ -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) {