displaying ident2 (parant / guardian) when editing existing non-adult.
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Aug 2006 14:02:35 +0000 (14:02 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Aug 2006 14:02:35 +0000 (14:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5551 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/xul/staff_client/server/patron/ue.js
Evergreen/xul/staff_client/server/patron/ue_config.js

index 353a7f1..32eb175 100644 (file)
@@ -94,6 +94,9 @@ function uEditBuild() {
 
        } else {
 
+               /* do we need to display the parent / gurdian field? */
+               uEditCheckDOB(uEditFindFieldByKey('dob'));
+
                $('ue_barcode').disabled = true;
                unHideMe($('ue_mark_card_lost'));
                unHideMe($('ue_reset_pw'));
index 9c7b54b..37eb11b 100644 (file)
@@ -1027,8 +1027,7 @@ function uEditCheckDOB(field) {
        __lastdob = dob;
 
        var parts = dob.split(/-/);
-       var d = new Date( parts[0], parts[1] - 1, parts[2] );
-
+       parts[2] = parts[2].replace(/[T ].*/,'');
        dob = buildDate( parts[0], parts[1], parts[2] );
 
        var today = new Date();