fixed bug (and simplified) the password verify
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 10 Aug 2006 22:07:00 +0000 (22:07 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 10 Aug 2006 22:07:00 +0000 (22:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5450 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/ue_config.js

index e4628a9..ac00877 100644 (file)
@@ -158,10 +158,7 @@ function uEditDefineData(patron) {
                                onpostchange : function(field, newval) {
                                        var pw1f = uEditFindFieldByWId('ue_password1');
                                        var pw1 = uEditNodeVal(pw1f);
-                                       if( pw1 == newval ) 
-                                               removeCSSClass(field.widget.node, CSS_INVALID_DATA);
-                                       else
-                                               addCSSClass(field.widget.node, CSS_INVALID_DATA);
+                                       field.widget.regex = new RegExp('^'+pw1+'$');
                                }
                        }
                },