diff options
author | thomascube <thomas@roundcube.net> | 2006-08-04 12:10:34 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-08-04 12:10:34 +0000 |
commit | fa4cd20fb14c087c80e6a9cde11df17d46e07566 (patch) | |
tree | 302691dc640112ce395f0bfd8522290504727cb2 /program/js/app.js | |
parent | c4e7e4f8221f7eb229c1186729424e9ce6ccee16 (diff) |
Several bugfixes; see CHANGELOG for details
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js index 734241465..3c9efb886 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3212,6 +3212,15 @@ function rcube_webmail() this.set_classname(mbox_li, 'selected', true); } } + + // also update mailbox name in window title + if (document.title) + { + var doc_title = String(document.title); + var reg = new RegExp(this.env.mailbox.toLowerCase(), 'i'); + if (this.env.mailbox && doc_title.match(reg)) + document.title = doc_title.replace(reg, mbox).replace(/^\([0-9]+\)\s+/i, ''); + } this.env.mailbox = mbox; }; |