1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 00:05:56 +00:00

digest: show number of unread articles in the title

This commit is contained in:
Andrew Dolgov
2010-09-12 12:16:50 +04:00
parent c1b5cd23e0
commit 4311cc7e17
2 changed files with 18 additions and 1 deletions

View File

@@ -346,6 +346,10 @@ function parse_feeds(transport) {
return 0;
});
var all_articles = find_feed(feeds, -4);
update_title(all_articles.unread);
last_feeds = feeds;
redraw_feedlist(feeds);
@@ -602,3 +606,16 @@ function feed_mo(elem) {
exception_error("feed_mo", e);
}
}
function update_title(unread) {
try {
document.title = "Tiny Tiny RSS";
if (unread > 0)
document.title += " (" + unread + ")";
} catch (e) {
exception_error("update_title", e);
}
}