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

Feature #446 - Allow customizing page title

This commit is contained in:
Richard Beales
2013-03-16 14:27:55 +00:00
parent 804ab1f75b
commit ffbab555b8
6 changed files with 12 additions and 5 deletions

View File

@@ -178,7 +178,11 @@ function search() {
}
function updateTitle() {
var tmp = "Tiny Tiny RSS";
var tmp = document.title;
if (tmp.indexOf('(')>0)
{
tmp = tmp.substr(0,tmp.lastIndexOf('('));
}
if (global_unread > 0) {
tmp = tmp + " (" + global_unread + ")";