summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-08-04 12:10:34 +0000
committerthomascube <thomas@roundcube.net>2006-08-04 12:10:34 +0000
commitfa4cd20fb14c087c80e6a9cde11df17d46e07566 (patch)
tree302691dc640112ce395f0bfd8522290504727cb2 /program/js
parentc4e7e4f8221f7eb229c1186729424e9ce6ccee16 (diff)
Several bugfixes; see CHANGELOG for details
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js9
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;
};