From e7a66d123097502156d87b4ebbbd63ac57d57d87 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 14 Jul 2015 12:50:27 +0300 Subject: (experimental) disable infscroll requests while marking auto catched up articles as read --- js/viewfeed.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/viewfeed.js') diff --git a/js/viewfeed.js b/js/viewfeed.js index 56b15116f..e1425a382 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1384,6 +1384,8 @@ function catchupBatchedArticles() { reply = JSON.parse(transport.responseText); var batch = reply.ids; + _infscroll_tmp_disable = 1; + batch.each(function(id) { console.log(id); var elem = $("RROW-" + id); @@ -1391,6 +1393,8 @@ function catchupBatchedArticles() { catchup_id_batch.remove(id); }); + _infscroll_tmp_disable = 0; + updateFloatingTitle(true); } }); -- cgit v1.2.3-54-g00ecf