diff options
author | thomascube <thomas@roundcube.net> | 2011-09-19 20:00:08 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-09-19 20:00:08 +0000 |
commit | 3d74c163b5d5e5726ae44f6a8b20d54f8ca146c4 (patch) | |
tree | 673b7e21ad7ef538a5d3a6fe756fcb1aac282d77 /program/js/app.js | |
parent | 1f803b6e3c54182cdbba2ced4aa1552fed2ba1d4 (diff) |
Allow 'compose' commands from any task
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js index 38a15cf0a..abac694b8 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -155,7 +155,7 @@ function rcube_webmail() } // enable general commands - this.enable_command('logout', 'mail', 'addressbook', 'settings', 'save-pref', 'undo', true); + this.enable_command('logout', 'mail', 'addressbook', 'settings', 'save-pref', 'compose', 'undo', true); if (this.env.permaurl) this.enable_command('permaurl', true); @@ -164,7 +164,7 @@ function rcube_webmail() case 'mail': // enable mail commands - this.enable_command('list', 'checkmail', 'compose', 'add-contact', 'search', 'reset-search', 'collapse-folder', true); + this.enable_command('list', 'checkmail', 'add-contact', 'search', 'reset-search', 'collapse-folder', true); if (this.gui_objects.messagelist) { @@ -809,7 +809,7 @@ function rcube_webmail() break; case 'compose': - var url = this.env.comm_path+'&_action=compose'; + var url = this.url('mail/compose'); if (this.task == 'mail') { url += '&_mbox='+urlencode(this.env.mailbox); |