From ebc5ae668ef598f59f25e4fb0a9ef258074d0d9b Mon Sep 17 00:00:00 2001
From: Jason Etheridge <jason@esilibrary.com>
Date: Tue, 24 May 2011 14:55:57 -0400
Subject: [PATCH] remove restriction on resetting pw to random number when Use
 Phone Password setting is active.  uEditMakeRandomPw will still get called
 for new users, but should get overwritten once a phone number is entered

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
---
 Open-ILS/web/js/ui/default/actor/user/register.js | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js
index e4dc715de4..6915f53cb3 100644
--- a/Open-ILS/web/js/ui/default/actor/user/register.js
+++ b/Open-ILS/web/js/ui/default/actor/user/register.js
@@ -233,9 +233,6 @@ function load() {
     }
 
 	dojo.connect(generatePassword, 'onClick', generatePasswordHandler);
-	if (uEditUsePhonePw) {
-		generatePassword.attr('disabled', true);
-	}
 
     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
@@ -1262,7 +1259,6 @@ function uEditNewPatron() {
 }
 
 function uEditMakeRandomPw(patron) {
-    if(uEditUsePhonePw) return;
     var rand  = Math.random();
     rand = parseInt(rand * 10000) + '';
     while(rand.length < 4) rand += '0';
-- 
2.11.0