[open-ils-commits] r16639 - trunk/Open-ILS/web/js/ui/default/actor/user (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jun 9 16:06:30 EDT 2010


Author: phasefx
Date: 2010-06-09 16:06:25 -0400 (Wed, 09 Jun 2010)
New Revision: 16639

Modified:
   trunk/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
In the patron editor, ensure that the Verify Password field matches the Password field to validate

Modified: trunk/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/register.js	2010-06-09 19:10:52 UTC (rev 16638)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/register.js	2010-06-09 20:06:25 UTC (rev 16639)
@@ -742,6 +742,18 @@
                 );
                 return;
 
+            case 'passwd':
+                dojo.connect(widget.widget, 'onChange',
+                    function(newVal) {
+                        var pw1 = findWidget('au', 'passwd').widget;
+                        var pw2 = findWidget('au', 'passwd2').widget;
+                        var preserved_value = pw2.attr('value');
+                        // Ensure that the pw2 field match the pw1 field to validate
+                        pw2.regExp = newVal.replace(/([.\\^$*+?\(\)\[\]\{\}])/g, '\\$1');
+                        pw2.reset();
+                        ps2.attr(preserved_value);
+                    });
+                return;
         }
     }
 



More information about the open-ils-commits mailing list