Author: michiel
Date: 2009-06-04 12:43:56 +0200 (Thu, 04 Jun 2009)
New Revision: 35706

Modified:
   mmbase/trunk/html/mmbase/validation/validation.js.jsp
Log:
keyup events should also be on password fields

Modified: mmbase/trunk/html/mmbase/validation/validation.js.jsp
===================================================================
--- mmbase/trunk/html/mmbase/validation/validation.js.jsp       2009-06-04 
10:20:48 UTC (rev 35705)
+++ mmbase/trunk/html/mmbase/validation/validation.js.jsp       2009-06-04 
10:43:56 UTC (rev 35706)
@@ -866,6 +866,7 @@
         // switch stolen from editwizards, not all cases are actually 
supported already here.
         switch(entry.type) {
         case "text":
+        case "password":
         case "textarea":
             $(entry).bind("keyup",  function(ev) { self.validate(ev); });
             $(entry).bind("change", function(ev) { self.validate(ev); });
@@ -883,7 +884,7 @@
         case "select-one":
         case "select-multiple":
         default:
-            this.log("Adding eventhandler to " + entry);
+            this.log("Adding eventhandler to " + entry + " (" + entry.type + 
")");
             this.log(entry);
             $(entry).bind("change", function(ev) { self.validate(ev); });
             $(entry).bind("blur",   function(ev) { self.serverValidate(ev); });

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to