jscalendar doesn't like the DoB date format. trim the DoB to just the date part
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 12 Oct 2009 15:05:21 +0000 (15:05 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 12 Oct 2009 15:05:21 +0000 (15:05 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@14359 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/ue.js

index 6d83064..67bc1cc 100644 (file)
@@ -158,6 +158,9 @@ function uEditBuild() {
 
        patron = fetchFleshedUser(usr);
        if(!patron) patron = uEditNewPatron(); 
+    
+    // jscalendar doesn't like the date format.  trim the time data
+    if(patron.dob()) patron.dob( patron.dob().replace(/T.*/, '') );
        
        uEditDraw( 
                uEditFetchIdentTypes(),