From b521268b6b0efddca1a1255fc8c1a12c3c1de8b7 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 6 Jan 2011 11:37:12 -0700 Subject: [PATCH] Set focus after setting body text --- imp/js/compose-dimp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index 116c10190..2c00148cc 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -558,8 +558,6 @@ var DimpCompose = { this.processFwdList(opts.fwd_list); - Field.focus(opts.focus || 'to'); - switch (opts.auto) { case 'forward_attach': $('noticerow', 'fwdattachnotice').invoke('show'); @@ -582,6 +580,8 @@ var DimpCompose = { this.setBodyText(msg); this.resizeMsgArea(); + Field.focus(opts.focus || 'to'); + if (DIMP.conf_compose.show_editor || opts.show_editor) { if (!IMP_Compose_Base.editor_on) { this.toggleHtmlEditor(opts.noupdate); -- 2.11.0