1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-25 09:51:28 +00:00

implement additional counter mode for virtual feeds when there's 0 unread articles

This commit is contained in:
Andrew Dolgov
2013-05-16 01:08:04 +04:00
parent 96ce71f35f
commit c594eca0de
5 changed files with 33 additions and 5 deletions

View File

@@ -219,6 +219,7 @@ function parse_counters(elems, scheduled_call) {
var error = elems[l].error;
var has_img = elems[l].has_img;
var updated = elems[l].updated;
var auxctr = parseInt(elems[l].auxcounter);
if (id == "global-unread") {
global_unread = ctr;
@@ -236,6 +237,7 @@ function parse_counters(elems, scheduled_call) {
}
setFeedUnread(id, (kind == "cat"), ctr);
setFeedValue(id, (kind == "cat"), 'auxcounter', auxctr);
if (kind != "cat") {
setFeedValue(id, false, 'error', error);