mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 22:41:28 +00:00
digest: show number of unread articles in the title
This commit is contained in:
17
digest.js
17
digest.js
@@ -346,6 +346,10 @@ function parse_feeds(transport) {
|
|||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var all_articles = find_feed(feeds, -4);
|
||||||
|
|
||||||
|
update_title(all_articles.unread);
|
||||||
|
|
||||||
last_feeds = feeds;
|
last_feeds = feeds;
|
||||||
|
|
||||||
redraw_feedlist(feeds);
|
redraw_feedlist(feeds);
|
||||||
@@ -602,3 +606,16 @@ function feed_mo(elem) {
|
|||||||
exception_error("feed_mo", e);
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Tiny Tiny Digest</title>
|
<title>Tiny Tiny RSS</title>
|
||||||
<link rel="stylesheet" type="text/css" href="digest.css?<?php echo $dt_add ?>"/>
|
<link rel="stylesheet" type="text/css" href="digest.css?<?php echo $dt_add ?>"/>
|
||||||
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user