diff options
author | alecpl <alec@alec.pl> | 2010-10-04 12:27:06 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-10-04 12:27:06 +0000 |
commit | e25a357d956c263c90f1c816395418ef4dbc2939 (patch) | |
tree | 3f9c173a0edd2cbbfb2d1cfe0ad66fe6548639a0 /skins/default/functions.js | |
parent | 619d58a5ac07b06239add110cf6e8a1a7c6dcc57 (diff) |
- Add Reply-to-List feature (#1484252)
- Add Mail-Followup-To/Mail-Reply-To support (#1485547)
Diffstat (limited to 'skins/default/functions.js')
-rw-r--r-- | skins/default/functions.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/skins/default/functions.js b/skins/default/functions.js index 4615a462a..64a6d9921 100644 --- a/skins/default/functions.js +++ b/skins/default/functions.js @@ -29,6 +29,7 @@ function rcube_mail_ui() { this.popups = { markmenu: {id:'markmessagemenu'}, + replyallmenu: {id:'replyallmenu'}, searchmenu: {id:'searchmenu', editable:1}, messagemenu: {id:'messagemenu'}, listmenu: {id:'listmenu', editable:1}, @@ -293,16 +294,15 @@ switch_preview_pane: function(elem) /* Message composing */ init_compose_form: function() { - var cc_field = document.getElementById('_cc'), - bcc_field = document.getElementById('_bcc'), + var f, field, fields = ['cc', 'bcc', 'replyto', 'mailreplyto', 'mailfollowupto'], div = document.getElementById('compose-div'), headers_div = document.getElementById('compose-headers-div'); - if (cc_field && cc_field.value != '') - rcmail_ui.show_header_form('cc'); - - if (bcc_field && bcc_field.value != '') - rcmail_ui.show_header_form('bcc'); + // Show input elements with non-empty value + for (f=0; f<fields.length; f++) { + if ((field = $('#_'+fields[f])) && field.length && field.val() != '') + rcmail_ui.show_header_form(fields[f]); + } // prevent from form data loss when pressing ESC key in IE if (bw.ie) { |