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

update SITE_TITLE customization to work without needing to be pre-defined, make it compatible with unread count now being at start of title

This commit is contained in:
Richard Beales
2013-03-21 20:24:26 +00:00
parent c489ae913d
commit 8d051fa076
6 changed files with 13 additions and 6 deletions

View File

@@ -179,9 +179,9 @@ function search() {
function updateTitle() {
var tmp = document.title;
if (tmp.indexOf('(')>0)
if (tmp.indexOf(")") > 0)
{
tmp = tmp.substr(0,tmp.lastIndexOf('('));
tmp = tmp.substr(tmp.indexOf(")") + 1);
}
if (global_unread > 0) {