From 203ee44470707bfe3af16f4ff4146896fa94e140 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 12 Sep 2008 12:27:46 +0000 Subject: Add link to open message in new window + tweaked some header styles --- program/js/app.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'program/js') 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': -- cgit v1.2.3