summaryrefslogtreecommitdiff
path: root/skins/default/functions.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-05-16 13:53:08 +0000
committeralecpl <alec@alec.pl>2011-05-16 13:53:08 +0000
commita509bb677ca626315d71e07afc8342a0690b6859 (patch)
treee55d28844812e713157aeeab2ed378adebd2ab05 /skins/default/functions.js
parent9b6c82fdc8e0f74a1ca0f838e710c944c5526f65 (diff)
- Add option to set default action of Forward button to "Forward as attachment"
Diffstat (limited to 'skins/default/functions.js')
-rw-r--r--skins/default/functions.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/skins/default/functions.js b/skins/default/functions.js
index c1dd8c2ab..9057d97c4 100644
--- a/skins/default/functions.js
+++ b/skins/default/functions.js
@@ -148,6 +148,13 @@ dragmessagemenu: function(show)
this.popups.dragmessagemenu.obj[show?'show':'hide']();
},
+forwardmenu: function(show)
+{
+ $("input[name='forwardtype'][value="+(rcmail.env.forward_attachment ? 1 : 0)+"]", this.popups.forwardmenu.obj)
+ .prop('checked', true);
+ this.show_popupmenu('forwardmenu', show);
+},
+
uploadmenu: function(show)
{
if (typeof show == 'object') // called as event handler