Commit 6358d70d authored by Andrew Dolgov's avatar Andrew Dolgov

reset local counter cache when feed count changes

parent 5edd605a
......@@ -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")) {
......
......@@ -55,6 +55,8 @@ function updateFeedList() {
// __("Loading, please wait...") + "</div>";
Element.show("feedlistLoading");
resetCounterCache();
if (dijit.byId("feedTree")) {
dijit.byId("feedTree").destroyRecursive();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment