X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fjs%2Finit.js;h=628816d769f76ce7e80ab4d8b699a99bf75288d8;hp=a7448c31fe9e1d2419ba913a715fafc5abe1c14e;hb=145dc7aa9346d0fd8eeed8840f677e76364f63ee;hpb=c41245c6b9fdaa91dadbf9f1a77c85300aa2fc61 diff --git a/plugins/squirrelspell/js/init.js b/plugins/squirrelspell/js/init.js index a7448c31..628816d7 100644 --- a/plugins/squirrelspell/js/init.js +++ b/plugins/squirrelspell/js/init.js @@ -1,13 +1,13 @@ /** * 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 ($Author$) - * @version $Date$ */ /** @@ -19,7 +19,7 @@ * @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(); }