diff options
author | thomascube <thomas@roundcube.net> | 2012-01-24 07:35:33 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-01-24 07:35:33 +0000 |
commit | b4e41f006b26fbb0d372eca5b0636a886dbc571f (patch) | |
tree | fcbb195e7eb31d561ef7f0b0e40cf831a1062ed8 /skins | |
parent | b3ad480bbc3d0796c18ffd0573107e9142adbd71 (diff) |
Show hidden compose header fileds if non-empty (#1488320)
Diffstat (limited to 'skins')
-rw-r--r-- | skins/larry/ui.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 36159eaa2..d07ee6c59 100644 --- a/skins/larry/ui.js +++ b/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(); |