Prevent endless recursive sent subfolder names - see: http://thread.gmane.org/gmane...
[squirrelmail.git] / plugins / squirrelspell / js / decrypt_error.js
index 56ec95e3a6f012457606c9e1917ecab376f48143..89211c28d71de139252ce22fa331c21ca171e2c2 100644 (file)
@@ -1,21 +1,25 @@
 /**
-   DECRYPT_ERROR.JS
-   -----------------
-   Some client-side form-checks. Trivial stuff.
-                                                               **/
+ * decrypt_error.js
+ *
+ * Some client-side form-checks. Trivial stuff.
+ *
+ * @author Konstantin Riabitsev <icon at duke.edu>
+ * @copyright 2001-2012 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ */
 
 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;
-}
-
+}
\ No newline at end of file