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 &&
DIMP.SpellChecker.spellCheck();
return;
}
+
+ if (($F('subject') == '') &&
+ !window.confirm(DIMP.text_compose.nosubject)) {
+ return;
+ }
break;
}
break;
case 'send_message':
- if (($F('subject') == '') &&
- !window.confirm(IMP.text.compose_nosubject)) {
- return;
- }
-
if (!this.skip_spellcheck &&
this.spellcheck &&
IMP.SpellChecker &&
return;
}
+ if (($F('subject') == '') &&
+ !window.confirm(IMP.text.compose_nosubject)) {
+ return;
+ }
+
this.skip_spellcheck = false;
if (IMP.SpellChecker) {