From: Michael M Slusarz Date: Thu, 11 Mar 2010 06:14:53 +0000 (-0700) Subject: Merge from CVS HEAD: Don't do subjectline check until spellcheck-on-send is done X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=69049e265915aa1f6a005b6631cc1bae051989ae;p=horde.git Merge from CVS HEAD: Don't do subjectline check until spellcheck-on-send is done --- diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index 6b35b6d95..0cd7ce505 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -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; } diff --git a/imp/js/compose.js b/imp/js/compose.js index 7a619a289..04d0116a1 100644 --- a/imp/js/compose.js +++ b/imp/js/compose.js @@ -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) {