diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-12 12:27:46 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-12 12:27:46 +0000 |
| commit | f82bb3d0f1a6cfcfef44479e127e3fad1bee1bfc (patch) | |
| tree | 53e13ebd0dbb1db7ecace23d75d7b36ecd02d0cb /roundcubemail/program/js | |
| parent | b76b7431d968756ef7b92f97d767413f07a05f39 (diff) | |
Add link to open message in new window + tweaked some header styles
git-svn-id: https://svn.roundcube.net/trunk@1767 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index b724287ef..a6d88aa85 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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': |
