From: Andrew Dolgov Date: Sat, 4 Feb 2017 08:57:31 +0000 (+0300) Subject: reset local counter cache when feed count changes X-Git-Tag: 17.4~61 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6358d70d5e1b0954fdc9e7f7481950ef59446036;p=tt-rss.git reset local counter cache when feed count changes --- diff --git a/js/feedlist.js b/js/feedlist.js index 3a0b7cb1..daba2910 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -13,6 +13,10 @@ var _counters_prev = []; return false; }*/ +function resetCounterCache() { + _counters_prev = []; +} + function loadMoreHeadlines() { try { console.log("loadMoreHeadlines"); @@ -306,10 +310,10 @@ function parse_counters(elems) { continue; } - if (id == "subscribed-feeds") { + /*if (id == "subscribed-feeds") { feeds_found = ctr; continue; - } + }*/ /*if (getFeedUnread(id, (kind == "cat")) != ctr || (kind == "cat")) { diff --git a/js/tt-rss.js b/js/tt-rss.js index 0cbd589b..36be92f4 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -55,6 +55,8 @@ function updateFeedList() { // __("Loading, please wait...") + ""; Element.show("feedlistLoading"); + + resetCounterCache(); if (dijit.byId("feedTree")) { dijit.byId("feedTree").destroyRecursive();