summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-03-04 13:45:30 +0000
committerthomascube <thomas@roundcube.net>2006-03-04 13:45:30 +0000
commit01c86f2e7c9eb4f2dff6d670ea8f36c431b9b476 (patch)
treefe523c4a92b5004a1468ad0b2ff8e09202248476 /program/js
parentf5121b5639992fc9e51fd551bac2254429b638fa (diff)
Minor bugfixes
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 3914fd318..35afe8671 100644
--- a/program/js/app.js
+++ b/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, '');
+ }
};