Fix problem with javascript when user has other plugins that include a
[squirrelmail.git] / plugins / squirrelspell / js / check_me.js
index 1abc4e0dcb910ad2d9dc3c2c62e3c2db571cf1c2..ad56b7f25176e5c6cece093f159f215b9f7cbf2a 100644 (file)
@@ -1,14 +1,14 @@
 /**
  * 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;
@@ -278,8 +278,8 @@ function sqspellCommitChanges(){
     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.