From 203ee44470707bfe3af16f4ff4146896fa94e140 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 12 Sep 2008 08:27:46 -0400 Subject: [PATCH] Add link to open message in new window + tweaked some header styles --- 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 b724287..a6d88aa 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -122,6 +122,9 @@ // 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 @@ 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': -- Gitblit v1.9.1