summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-01-24 07:35:33 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-01-24 07:35:33 +0000
commitb695597d043e3667ff68ea4a42c7d09ce45116cb (patch)
tree210c608001f4a619025ca02e6daae43655dd33b0 /roundcubemail
parentd2ea14c46bdaf2e0ad801b1a1475475b2fbe0db9 (diff)
Show hidden compose header fileds if non-empty (#1488320)
git-svn-id: https://svn.roundcube.net/trunk@5814 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/skins/larry/ui.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/roundcubemail/skins/larry/ui.js b/roundcubemail/skins/larry/ui.js
index 36159eaa2..d07ee6c59 100644
--- a/roundcubemail/skins/larry/ui.js
+++ b/roundcubemail/skins/larry/ui.js
@@ -87,6 +87,13 @@ function rcube_mail_ui()
rcmail.addEventListener('add-recipient', function(p){ show_header_row(p.field, true); });
layout_composeview();
+ // Show input elements with non-empty value
+ var field, fields = ['cc', 'bcc', 'replyto', 'followupto'];
+ for (var f=0; f < fields.length; f++) {
+ if ((field = $('#_'+fields[f])) && field.length && field.val() != '')
+ show_header_row(fields[f], true);
+ }
+
$('#composeoptionstoggle').parent().click(function(){
$('#composeoptionstoggle').toggleClass('enabled');
$('#composeoptions').toggle();