]> git.wh0rd.org Git - tt-rss.git/commitdiff
force-request counters on load once if bw_limit option is enabled (because there...
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 12 Aug 2017 04:51:37 +0000 (07:51 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 12 Aug 2017 04:51:37 +0000 (07:51 +0300)
js/feedlist.js

index 46a22acd0381d4f5928a61d69ed8df37bfb3088a..887d844538486bc9a23de97f5aa763a82cdf736a 100644 (file)
@@ -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);
+    }
 }