mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 11:31:29 +00:00
reset local counter cache when feed count changes
This commit is contained in:
@@ -13,6 +13,10 @@ var _counters_prev = [];
|
|||||||
return false;
|
return false;
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
function resetCounterCache() {
|
||||||
|
_counters_prev = [];
|
||||||
|
}
|
||||||
|
|
||||||
function loadMoreHeadlines() {
|
function loadMoreHeadlines() {
|
||||||
try {
|
try {
|
||||||
console.log("loadMoreHeadlines");
|
console.log("loadMoreHeadlines");
|
||||||
@@ -306,10 +310,10 @@ function parse_counters(elems) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (id == "subscribed-feeds") {
|
/*if (id == "subscribed-feeds") {
|
||||||
feeds_found = ctr;
|
feeds_found = ctr;
|
||||||
continue;
|
continue;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/*if (getFeedUnread(id, (kind == "cat")) != ctr ||
|
/*if (getFeedUnread(id, (kind == "cat")) != ctr ||
|
||||||
(kind == "cat")) {
|
(kind == "cat")) {
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ function updateFeedList() {
|
|||||||
|
|
||||||
Element.show("feedlistLoading");
|
Element.show("feedlistLoading");
|
||||||
|
|
||||||
|
resetCounterCache();
|
||||||
|
|
||||||
if (dijit.byId("feedTree")) {
|
if (dijit.byId("feedTree")) {
|
||||||
dijit.byId("feedTree").destroyRecursive();
|
dijit.byId("feedTree").destroyRecursive();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user