diff options
author | Andrew Dolgov <[email protected]> | 2015-07-14 12:50:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-07-14 12:50:27 +0300 |
commit | e7a66d123097502156d87b4ebbbd63ac57d57d87 (patch) | |
tree | ab1c1134d1d9ec8100fe6ae2036352737b6d0c81 /js/viewfeed.js | |
parent | 0d0cb8fe1e973f0c1cb5b08cc43da21e9edc5516 (diff) |
(experimental) disable infscroll requests while marking auto catched up articles as read
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r-- | js/viewfeed.js | 4 |
1 files changed, 4 insertions, 0 deletions
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); } }); |