fsf changes, meant to be rebased on upstream
[squirrelmail.git] / plugins / squirrelspell / js / crypto_settings.js
CommitLineData
849bdf42 1/**
a8380e75 2 * crypto_settings.js
a8380e75 3 *
4b4abf93 4 * Some client-side checks. Nothing fancy.
a8380e75 5 *
4b4abf93 6 * @author Konstantin Riabitsev <icon at duke.edu>
77a1e3d1 7 * @copyright 2001-2022 The SquirrelMail Project Team
4b4abf93 8 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
9 * @version $Id$
a8380e75 10 */
849bdf42 11
a8380e75 12/**
13 * This function is the only thing. It is called on form submit and
14 * asks the user some questions.
15 */
849bdf42 16function checkMe(){
a8380e75 17 if (!document.forms[0].action.checked){
18 alert (ui_makesel);
19 return false;
20 }
0c961f1d 21 if (document.forms[0].encaction.value=="encrypt")
a8380e75 22 cmsg=ui_encrypt;
0c961f1d 23 if (document.forms[0].encaction.value=="decrypt")
a8380e75 24 cmsg=ui_decrypt;
25 return confirm(cmsg);
0c961f1d 26}