summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-05-13 16:29:19 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-05-13 16:29:19 +0000
commit2545cfd8ae678f609786c4d51d778fa3a99d0612 (patch)
tree8f3ce6d530750d7259f6f056254b3df95812cf63 /roundcubemail/program/js
parent2bd8335b04424821ffc5d045c1eaeaf229512b77 (diff)
- Add forward-as-attachment feature
git-svn-id: https://svn.roundcube.net/trunk@4761 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 99446d626..aac432f32 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -211,7 +211,7 @@ function rcube_webmail()
this.env.message_commands = ['show', 'reply', 'reply-all', 'reply-list', 'forward',
'moveto', 'copy', 'delete', 'open', 'mark', 'edit', 'viewsource', 'download',
- 'print', 'load-attachment', 'load-headers'];
+ 'print', 'load-attachment', 'load-headers', 'forward-attachment'];
if (this.env.action=='show' || this.env.action=='preview') {
this.enable_command(this.env.message_commands, this.env.uid);
@@ -929,10 +929,12 @@ function rcube_webmail()
}
break;
+ 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), true);
+ this.goto_url('compose', '_forward_uid='+uid+'&_mbox='+urlencode(this.env.mailbox)
+ + (command == 'forward-attachment' ? '&_attachment=1' : ''), true);
break;
case 'print':
@@ -1431,7 +1433,7 @@ function rcube_webmail()
if (selected) {
// Hide certain command buttons when Drafts folder is selected
if (this.env.mailbox == this.env.drafts_mailbox)
- this.enable_command('reply', 'reply-all', 'reply-list', 'forward', false);
+ this.enable_command('reply', 'reply-all', 'reply-list', 'forward', 'forward-attachment', false);
// Disable reply-list when List-Post header is not set
else {
var msg = this.env.messages[list.get_single_selection()];