Don't remove Cc/Bcc toggles - it may need to be reset for quickreplies
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 2 Nov 2010 05:10:26 +0000 (23:10 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 2 Nov 2010 05:10:26 +0000 (23:10 -0600)
imp/js/compose-dimp.js

index 4023bfc..643dec3 100644 (file)
@@ -839,15 +839,16 @@ var DimpCompose = {
 
     toggleCC: function(type)
     {
-        var t;
+        var t = $('toggle' + type),
+            s = t.siblings().first();
 
         $('send' + type).show();
-        t = $('toggle' + type);
-        if (t.siblings().size()) {
-            t.remove();
+        if (s && s.visible()) {
+            t.hide();
         } else {
-            t.up('TR').remove();
+            t.up('TR').hide();
         }
+
         this.resizeMsgArea();
     },