From: phasefx Date: Fri, 8 Oct 2010 15:45:04 +0000 (+0000) Subject: make sure we change the juvenile flag on the patron object when we automatically... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c6397979b3ae462295a575ff0921ef0fec0cb3b4;p=Evergreen.git make sure we change the juvenile flag on the patron object when we automatically change the juvenile checkbox in the UI git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@18241 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 6a038eacc8..96ffd42717 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -1154,6 +1154,8 @@ function uEditCheckDOB(field) { if( dob < base ) { /* patron is of age */ ident_field.required = false; uEditFindFieldByKey('juvenile').widget.node.checked = false; + patron.juvenile(0); + patron.ischanged(1); if(!uEditNodeVal(ident_field)) hideMe(ident_field.widget.node.parentNode.parentNode.parentNode); return; @@ -1169,8 +1171,11 @@ function uEditCheckDOB(field) { } unHideMe(ident_field.widget.node.parentNode.parentNode.parentNode); - if(!uEditFindFieldByKey('juvenile').widget.node.checked) + if(!uEditFindFieldByKey('juvenile').widget.node.checked) { uEditFindFieldByKey('juvenile').widget.node.checked = true; + patron.juvenile(1); + patron.ischanged(1); + } ident_field.required = true; uEditCheckErrors(); }