/**
* check_me.js
- * ------------
+ *
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* This JavaScript app is the driving power of the SquirrelSpell's
* main spellchecker window. Hope you have as much pain figuring
* it out as it took to write. ;))
*
* $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
*/
var CurrentError=0;
newBody += sqspell_lines[i];
}
- opener.document.forms[0].subject.value=newSubject;
- opener.document.forms[0].body.value=newBody;
+ opener.document.compose.subject.value=newSubject;
+ opener.document.compose.body.value=newBody;
/**
* See if any words were added to the dictionary.
/**
* init.js
- * -------
+ *
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
* Grabs the text from the SquirrelMail field and submits it to
* the squirrelspell.
*
* $Id$
- *
- * @author Konstantin Riabitsev <icon@duke.edu> ($Author$)
- * @version $Date$
*/
/**
* @return void
*/
function sqspell_init(flag){
- textToSpell = opener.document.forms[0].subject.value + "\n" + opener.document.forms[0].body.value;
+ textToSpell = opener.document.compose.subject.value + "\n" + opener.document.compose.body.value;
document.forms[0].sqspell_text.value = textToSpell;
- if (flag) document.forms[0].submit();
+ if (flag) document.compose.submit();
}