From: Michael M Slusarz Date: Wed, 4 Nov 2009 18:36:48 +0000 (-0700) Subject: Fix resizing when removing attachment X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c22f81e1ea9cd3a1a98a133def0b1a2160cbeebd;p=horde.git Fix resizing when removing attachment --- diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index fd9f52fa2..4b7ebb01e 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -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()