From: Michael M Slusarz Date: Thu, 6 Jan 2011 18:37:12 +0000 (-0700) Subject: Set focus after setting body text X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b521268b6b0efddca1a1255fc8c1a12c3c1de8b7;p=horde.git Set focus after setting body text --- 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);