remove restriction on resetting pw to random number when Use Phone Password setting...
authorJason Etheridge <jason@esilibrary.com>
Tue, 24 May 2011 18:55:57 +0000 (14:55 -0400)
committerJason Etheridge <jason@esilibrary.com>
Tue, 24 May 2011 18:58:12 +0000 (14:58 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/web/js/ui/default/actor/user/register.js

index b3733a2..70a39ab 100644 (file)
@@ -148,10 +148,7 @@ function load() {
         input.widget.attr('disabled', true).attr('readOnly', true);
     }
 
-    dojo.connect(generatePassword, 'onClick', generatePasswordHandler);
-    if (uEditUsePhonePw) {
-        generatePassword.attr('disabled', true);
-    }
+       dojo.connect(generatePassword, 'onClick', generatePasswordHandler);
 
     if(!patron.isnew() && !checkGrpAppPerm(patron.profile()) && patron.id() != openils.User.user.id()) {
         // we are not allowed to edit this user, so disable the save option
@@ -1116,7 +1113,6 @@ function uEditNewPatron() {
 }
 
 function uEditMakeRandomPw(patron) {
-    if(uEditUsePhonePw) return;
     var rand  = Math.random();
     rand = parseInt(rand * 10000) + '';
     while(rand.length < 4) rand += '0';