From: erickson Date: Thu, 10 Aug 2006 22:07:00 +0000 (+0000) Subject: fixed bug (and simplified) the password verify X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c0ac68f4b80228e162fd7e82d93cc7c48a4d7302;p=evergreen%2Fpines.git fixed bug (and simplified) the password verify git-svn-id: svn://svn.open-ils.org/ILS/trunk@5450 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/ue_config.js b/Open-ILS/xul/staff_client/server/patron/ue_config.js index e4628a928f..ac008772d3 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -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+'$'); } } },