From 893057eb12be32bb0aa283324a3e46174cb0cc54 Mon Sep 17 00:00:00 2001 From: Jason Etheridge 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 --- Open-ILS/web/js/ui/default/actor/user/register.js | 6 +----- 1 file changed, 1 insertion(+), 5 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 b3733a2669..70a39ab725 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -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'; -- 2.11.0