From 0cc39bbaf6025845c535385a5f531f4fe38aa942 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 9 Jun 2009 20:54:36 +0000 Subject: [PATCH] added support for default inet access level setting git-svn-id: svn://svn.open-ils.org/ILS/trunk@13355 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/actor/user/register.js | 8 ++++---- 1 file changed, 4 insertions(+), 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 1db1cb2953..5be8b67ce4 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -55,16 +55,17 @@ function load() { } } - uEditLoadUser(userId); - orgSettings = fieldmapper.aou.fetchOrgSettingBatch(staff.ws_ou(), [ 'global.juvenile_age_threshold', 'patron.password.use_phone', + 'ui.patron.default_inet_access_level' ]); for(k in orgSettings) if(orgSettings[k]) orgSettings[k] = orgSettings[k].value; + uEditLoadUser(userId); + var list = pcrud.search('fdoc', {fm_class:fmClasses}); for(var i in list) { var doc = list[i]; @@ -359,11 +360,10 @@ function uEditNewPatron() { card.isnew(1); patron.card(card); patron.cards([card]); - //patron.net_access_level(defaultNetLevel); XXX + patron.net_access_level(orgSettings['ui.patron.default_inet_access_level'] || 1); patron.stat_cat_entries([]); patron.survey_responses([]); patron.addresses([]); - //patron.home_ou(USER.ws_ou()); XXX uEditMakeRandomPw(patron); } -- 2.11.0