fix for 86116-autospellcheck doesnt work all the time;r=ducarroz;sr=mscott

This commit is contained in:
varada%netscape.com 2002-02-20 03:06:08 +00:00
parent 5528685a90
commit 470277e568

View File

@ -1573,8 +1573,12 @@ function GenericSendMessage( msgType )
if (msgType == nsIMsgCompDeliverMode.Now || msgType == nsIMsgCompDeliverMode.Later)
{
//Do we need to check the spelling?
if (sPrefs.getBoolPref("mail.SpellCheckBeforeSend"))
if (sPrefs.getBoolPref("mail.SpellCheckBeforeSend")){
//We disable spellcheck for the following -subject line, attachment pane, identity and addressing widget
//therefore we need to explicitly focus on the mail body when we have to do a spellcheck.
editorShell.contentWindow.focus();
goDoCommand('cmd_spelling');
}
//Check if we have a subject, else ask user for confirmation
if (subject == "")