]> git.wh0rd.org - tt-rss.git/commitdiff
reset local counter cache when feed count changes
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 4 Feb 2017 08:57:31 +0000 (11:57 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 4 Feb 2017 08:57:31 +0000 (11:57 +0300)
js/feedlist.js
js/tt-rss.js

index 3a0b7cb12d2c1313f6b4dc3cec24dfd4e94f2f90..daba29108b7c714ce74c1f708712b05e25c66462 100644 (file)
@@ -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")) {
index 0cbd589bbb85207a57d04a641026977d26c0db33..36be92f4e0f7e642ef4ad99daf1e415d57b3e6ff 100644 (file)
@@ -55,6 +55,8 @@ function updateFeedList() {
 //                     __("Loading, please wait...") + "</div>";
 
                Element.show("feedlistLoading");
+               
+               resetCounterCache();
 
                if (dijit.byId("feedTree")) {
                        dijit.byId("feedTree").destroyRecursive();