Set focus after setting body text
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 6 Jan 2011 18:37:12 +0000 (11:37 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 6 Jan 2011 18:37:12 +0000 (11:37 -0700)
imp/js/compose-dimp.js

index 116c101..2c00148 100644 (file)
@@ -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);