summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-08-04 12:10:34 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-08-04 12:10:34 +0000
commit9a583b03aa7f8ad556af285a82a7d5a86cabbd5a (patch)
treec78a394cc3dbe15176701ed81dbc1940887616a9 /roundcubemail/program/js
parenteca6d58b152ca833017703b335fe1574d3aa279e (diff)
Several bugfixes; see CHANGELOG for details
git-svn-id: https://svn.roundcube.net/trunk@292 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 734241465..3c9efb886 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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;
};