From da9e79dd5497606832478688b341fc6fe87fb7a9 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 3 Mar 2010 00:17:43 -0700 Subject: [PATCH] Once forward body is typed in, remove chance to add forward body --- imp/js/compose-dimp.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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; -- 2.11.0