X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fjs%2Finit.js;h=d7d6c1c02c9a12e1ee579e03204dadf618e4a9f2;hb=b1870063b2e576ca9ff3cd41ada9cda1f8812507;hp=ca2a368fd1e1ebc2d8a823014637cf568cd2ae14;hpb=849bdf42ed7bd7cca68909d2b46869742dfd210e;p=squirrelmail.git diff --git a/plugins/squirrelspell/js/init.js b/plugins/squirrelspell/js/init.js index ca2a368f..d7d6c1c0 100644 --- a/plugins/squirrelspell/js/init.js +++ b/plugins/squirrelspell/js/init.js @@ -1,13 +1,24 @@ /** - INIT.JS - ------- - Grabs the text from the SquirrelMail field and submits it to - the squirrelspell. - **/ + * init.js + * + * Grabs the text from the SquirrelMail field and submits it to + * the squirrelspell. + * + * @copyright © 2001-2006 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ + */ + +/** + * This is the work function. + * + * @param flag tells the function whether to automatically submit the + * form, or wait for user input. True submits the form, while + * false doesn't. + * @return void + */ function sqspell_init(flag){ - // flag tells the function whether to automatically submit the form, or - // wait for user input. True submits the form, while False doesn't. - 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(); -} +} \ No newline at end of file