summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-09-12 12:27:46 +0000
committerthomascube <thomas@roundcube.net>2008-09-12 12:27:46 +0000
commit203ee44470707bfe3af16f4ff4146896fa94e140 (patch)
tree83f7fe32ae13796aa4eeaa66d35dc055469458dd /program/js/app.js
parente5686f4a011ea0110bf49ae1d56aa749c75ffc76 (diff)
Add link to open message in new window + tweaked some header styles
Diffstat (limited to 'program/js/app.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 b724287ef..a6d88aa85 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -122,6 +122,9 @@ function rcube_webmail()
// enable general commands
this.enable_command('logout', 'mail', 'addressbook', 'settings', true);
+ if (this.env.permaurl)
+ this.enable_command('permaurl', true);
+
switch (this.task)
{
case 'mail':
@@ -529,6 +532,12 @@ function rcube_webmail()
this.switch_task(command);
break;
+ case 'permaurl':
+ if (obj && obj.href && obj.target)
+ return true;
+ else if (this.env.permaurl)
+ parent.location.href = this.env.permaurl;
+ break;
// misc list commands
case 'list':