summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authorroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-03-04 13:45:30 +0000
committerroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-03-04 13:45:30 +0000
commit3309d5b7adb6a1f372bd0528ecdac3f2617d6f98 (patch)
tree3b0c81bff1f53ae55063c256e5e0745e60f7c62c /roundcubemail/program/js
parentf8a4b309baafbc3df89cbf115bf090aef263f866 (diff)
Minor bugfixes
git-svn-id: https://svn.roundcube.net/trunk@162 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 3914fd318..35afe8671 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -2680,10 +2680,10 @@ function rcube_webmail()
}
// set unread count to window title
- if ((set_title || mbox==this.env.mailbox) && document.title)
+ reg = /^\([0-9]+\)\s+/i;
+ if (set_title && count && document.title)
{
var doc_title = String(document.title);
- reg = /^\([0-9]+\)\s+/i;
if (count && doc_title.match(reg))
document.title = doc_title.replace(reg, '('+count+') ');
@@ -2692,6 +2692,11 @@ function rcube_webmail()
else
document.title = doc_title.replace(reg, '');
}
+ // remove unread count from window title
+ else if (document.title)
+ {
+ document.title = document.title.replace(reg, '');
+ }
};