X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fjs%2Fdecrypt_error.js;h=a8f188d851a3ee9bed10b2429dfd96344578da64;hp=56ec95e3a6f012457606c9e1917ecab376f48143;hb=a8380e75f951c6915dba43505e94df50af6ea3cb;hpb=849bdf42ed7bd7cca68909d2b46869742dfd210e;ds=sidebyside diff --git a/plugins/squirrelspell/js/decrypt_error.js b/plugins/squirrelspell/js/decrypt_error.js index 56ec95e3..a8f188d8 100644 --- a/plugins/squirrelspell/js/decrypt_error.js +++ b/plugins/squirrelspell/js/decrypt_error.js @@ -1,21 +1,26 @@ /** - DECRYPT_ERROR.JS - ----------------- - Some client-side form-checks. Trivial stuff. - **/ + * decrypt_error.js + * ----------------- + * Some client-side form-checks. Trivial stuff. + * + * $Id$ + * + * @author Konstantin Riabitsev ($Author$) + * @version $Date$ + */ function AYS(){ if (document.forms[0].delete_words.checked && document.forms[0].old_key.value){ - alert ("You can either delete your dictionary or type in the old password. Not both."); + alert (ui_candel); return false; } - + if (!document.forms[0].delete_words.checked && !document.forms[0].old_key.value){ - alert("First make a choice."); + alert(ui_choice); return false; } if (document.forms[0].delete_words.checked) - return confirm("This will delete your personal dictionary file. Proceed?"); + return confirm(ui_willdel); return true; }