From: Andrew Dolgov Date: Sat, 12 Aug 2017 04:51:37 +0000 (+0300) Subject: force-request counters on load once if bw_limit option is enabled (because there... X-Git-Tag: 17.12~131 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=03c56b041f7087d0f824276d624629cafe3cc07a;p=tt-rss.git force-request counters on load once if bw_limit option is enabled (because there's no timeout()) --- diff --git a/js/feedlist.js b/js/feedlist.js index 46a22acd..887d8445 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -198,7 +198,12 @@ function feedlist_init() { hideOrShowFeeds(getInitParam("hide_read_feeds") == 1); - setTimeout(timeout, 250); + // bw_limit disables timeout() so we request initial counters separately + if (getInitParam("bw_limit") == "1") { + request_counters(true); + } else { + setTimeout(timeout, 250); + } }