|
|
@ -310,8 +310,11 @@ function parse_counters(elems, scheduled_call) {
|
|
|
|
displayNewContentPrompt(id);
|
|
|
|
displayNewContentPrompt(id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (getFeedUnread(id, (kind == "cat")) != ctr)
|
|
|
|
if (getFeedUnread(id, (kind == "cat")) != ctr ||
|
|
|
|
|
|
|
|
(kind == "cat" && getCatParam(id) != child_unread)) {
|
|
|
|
|
|
|
|
|
|
|
|
cache_delete("feed:" + id + ":" + (kind == "cat"));
|
|
|
|
cache_delete("feed:" + id + ":" + (kind == "cat"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
setFeedUnread(id, (kind == "cat"), ctr);
|
|
|
|
setFeedUnread(id, (kind == "cat"), ctr);
|
|
|
|
|
|
|
|
|
|
|
@ -430,6 +433,14 @@ function setCatParam(cat, value) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getCatParam(cat) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
return getFeedValue(cat, true, "child_unread");
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function selectFeed(feed, is_cat) {
|
|
|
|
function selectFeed(feed, is_cat) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|