From 3516b023444619177270447c7b7aa7e7c0ece239 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 28 Aug 2015 04:36:32 -0400
Subject: [PATCH] Fix so adding CC/BCC recipients from the sidebar unhides compose form fields in Classic skin (#1490472)

---
 CHANGELOG         |    1 +
 program/js/app.js |    2 +-
 skins/larry/ui.js |    1 -
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 677884b..5ddd45d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -45,6 +45,7 @@
 - Fix so input field (e.g. search box) does not loose focus on list load (#1490455)
 - Fix so css of one html part does not apply to other text parts on message display (#1490505)
 - Fix handling of plus character in mailto: links (#1490510)
+- Fix so adding CC/BCC recipients from the sidebar unhides compose form fields in Classic skin (#1490472)
 
 RELEASE 1.1.2
 -------------
diff --git a/program/js/app.js b/program/js/app.js
index b798dde..549e5a6 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3681,7 +3681,7 @@
       var oldval = input.val(), rx = new RegExp(RegExp.escape(delim) + '\\s*$');
       if (oldval && !rx.test(oldval))
         oldval += delim + ' ';
-      input.val(oldval + recipients.join(delim + ' ') + delim + ' ');
+      input.val(oldval + recipients.join(delim + ' ') + delim + ' ').change();
       this.triggerEvent('add-recipient', { field:field, recipients:recipients });
     }
 
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 95efccf..0171a19 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -174,7 +174,6 @@
       }
       else if (rcmail.env.action == 'compose') {
         rcmail.addEventListener('aftersend-attachment', show_uploadform)
-          .addEventListener('add-recipient', function(p){ show_header_row(p.field, true); })
           .addEventListener('aftertoggle-editor', function(e){
             window.setTimeout(function(){ layout_composeview() }, 200);
             if (e && e.mode)

--
Gitblit v1.9.1