From: miker Date: Sat, 6 Dec 2008 06:10:08 +0000 (+0000) Subject: automatically set the juvenile flag to true under the same conditions as displaying... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9607e7e1e73cb6dbea1ac1c76102a75e3912a589;p=Evergreen.git automatically set the juvenile flag to true under the same conditions as displaying the guardian textbox git-svn-id: svn://svn.open-ils.org/ILS/trunk@11438 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/ue_config.js b/Open-ILS/xul/staff_client/server/patron/ue_config.js index afe1b42325..8bb500538b 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -18,7 +18,10 @@ const defaultCountry = 'USA'; const defaultNetAccess = 'None'; const defaultNetLevel = 1; const CSS_INVALID_DATA = 'invalid_value'; + +// XXX Should become an org unit setting XXX const ADULT_AGE = 18; + //const GUARDIAN_NOTE = 'SYSTEM: Parent/Guardian'; var dataFields; @@ -1069,6 +1072,8 @@ function uEditCheckDOB(field) { return; } + uEditFindFieldByKey('juvenile').widget.node.checked = true; + unHideMe(f.widget.node.parentNode.parentNode.parentNode); f.required = true; uEditCheckErrors();