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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user