From: Michael M Slusarz Date: Wed, 3 Mar 2010 07:17:43 +0000 (-0700) Subject: Once forward body is typed in, remove chance to add forward body X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=da9e79dd5497606832478688b341fc6fe87fb7a9;p=horde.git Once forward body is typed in, remove chance to add forward body --- diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index 31970b41a..44aa5e559 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -461,6 +461,15 @@ var DimpCompose = { switch (opts.auto) { case 'forward_attach': $('noticerow', 'fwdattachnotice').invoke('show'); + $('composeMessage').stopObserving('keydown').observe('keydown', function() { + $('fwdattachnotice').fade({ + afterFinish: function() { + $('fwdattachnotice').up('TR').hide(); + this.resizeMsgArea(); + }.bind(this), + duration: 0.4 + }); + }.bind(this)); break case 'forward_body': @@ -728,7 +737,8 @@ var DimpCompose = { $('to_loading_img').show(); DimpCore.doAction('getReplyData', { headeronly: 1, imp_compose: $F('composeCache'), type: 'reply' }, { callback: this.swapToAddressCallback.bind(this) }); } else { - DimpCore.doAction('getForwardData', { dataonly: 1, imp_compose: $F('composeCache'), type: (id == 'fwdattachnotice' ? 'forward_body' : 'forward_attach') }, { callback: this.forwardAddCallback.bind(this) }); + DimpCore.doAction('GetForwardData', { dataonly: 1, imp_compose: $F('composeCache'), type: (id == 'fwdattachnotice' ? 'forward_body' : 'forward_attach') }, { callback: this.forwardAddCallback.bind(this) }); + $('composeMessage').stopObserving('keydown'); } e.stop(); return;