Merge from CVS HEAD: Don't do subjectline check until spellcheck-on-send is done
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Mar 2010 06:14:53 +0000 (23:14 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Mar 2010 06:17:29 +0000 (23:17 -0700)
imp/js/compose-dimp.js
imp/js/compose.js

index 6b35b6d..0cd7ce5 100644 (file)
@@ -149,11 +149,6 @@ var DimpCompose = {
         if (action == 'sendMessage' || action == 'saveDraft') {
             switch (action) {
             case 'sendMessage':
-                if (($F('subject') == '') &&
-                    !window.confirm(DIMP.text_compose.nosubject)) {
-                    return;
-                }
-
                 if (!this.skip_spellcheck &&
                     DIMP.conf_compose.spellcheck &&
                     DIMP.SpellChecker &&
@@ -162,6 +157,11 @@ var DimpCompose = {
                     DIMP.SpellChecker.spellCheck();
                     return;
                 }
+
+                if (($F('subject') == '') &&
+                    !window.confirm(DIMP.text_compose.nosubject)) {
+                    return;
+                }
                 break;
             }
 
index 7a619a2..04d0116 100644 (file)
@@ -103,11 +103,6 @@ var ImpCompose = {
             break;
 
         case 'send_message':
-            if (($F('subject') == '') &&
-                !window.confirm(IMP.text.compose_nosubject)) {
-                return;
-            }
-
             if (!this.skip_spellcheck &&
                 this.spellcheck &&
                 IMP.SpellChecker &&
@@ -117,6 +112,11 @@ var ImpCompose = {
                 return;
             }
 
+            if (($F('subject') == '') &&
+                !window.confirm(IMP.text.compose_nosubject)) {
+                return;
+            }
+
             this.skip_spellcheck = false;
 
             if (IMP.SpellChecker) {