diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-06-01 15:19:14 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-06-01 15:19:14 +0200 |
commit | 15482bcadef86676864f7d498dc54f7c6a85c524 (patch) | |
tree | 3acb7b236384fca1439e0438c12cb767acb1e27f /skins/larry | |
parent | cb3e2fe0c2e36e0f41d93015fb1b604d195f9047 (diff) |
Improved handling of Reply-To/Bcc addresses of identity in compose form (#1489016)
Diffstat (limited to 'skins/larry')
-rw-r--r-- | skins/larry/ui.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 693448097..096369a88 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -111,10 +111,14 @@ function rcube_mail_ui() 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); + var f, v, field, fields = ['cc', 'bcc', 'replyto', 'followupto']; + for (f=0; f < fields.length; f++) { + v = fields[f]; field = $('#_'+v); + if (field.length) { + field.on('change', {v: v}, function(e) { if (this.value) show_header_row(e.data.v, true); }); + if (field.val() != '') + show_header_row(v, true); + } } $('#composeoptionstoggle').click(function(){ |