Fix resizing when removing attachment
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 4 Nov 2009 18:36:48 +0000 (11:36 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 6 Nov 2009 20:50:08 +0000 (13:50 -0700)
imp/js/compose-dimp.js

index fd9f52f..4b7ebb0 100644 (file)
@@ -555,15 +555,17 @@ var DimpCompose = {
             n = $(n);
             ids.push(n.down('SPAN.remove').readAttribute('atc_id'));
             n.fade({
-                afterFinish: function() { n.remove(); },
+                afterFinish: function() {
+                    n.remove();
+                    this.resizeMsgArea();
+                }.bind(this),
                 duration: 0.4
             });
-        });
+        }, this);
         if (!$('attach_list').childElements().size()) {
             $('attach_list').hide();
         }
         DimpCore.doAction('DeleteAttach', { atc_indices: ids, imp_compose: $F('composeCache') });
-        this.resizeMsgArea();
     },
 
     resizeMsgArea: function()