diff options
author | alecpl <alec@alec.pl> | 2011-05-16 13:53:08 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-05-16 13:53:08 +0000 |
commit | a509bb677ca626315d71e07afc8342a0690b6859 (patch) | |
tree | e55d28844812e713157aeeab2ed378adebd2ab05 /program/js/app.js | |
parent | 9b6c82fdc8e0f74a1ca0f838e710c944c5526f65 (diff) |
- Add option to set default action of Forward button to "Forward as attachment"
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js index 3f103de65..c4aa50995 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -931,10 +931,13 @@ function rcube_webmail() case 'forward-attachment': case 'forward': - var uid; - if (uid = this.get_single_uid()) - this.goto_url('compose', '_forward_uid='+uid+'&_mbox='+urlencode(this.env.mailbox) - + (command == 'forward-attachment' ? '&_attachment=1' : ''), true); + var uid, url; + if (uid = this.get_single_uid()) { + url = '_forward_uid='+uid+'&_mbox='+urlencode(this.env.mailbox); + if (command == 'forward-attachment' || (!props && this.env.forward_attachment)) + url += '&_attachment=1'; + this.goto_url('compose', url, true); + } break; case 'print': |