like dob, trim the expire_date to accomodate jscalendar
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 14 Oct 2009 19:32:05 +0000 (19:32 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 14 Oct 2009 19:32:05 +0000 (19:32 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@14418 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 67bc1cc..8de0aba 100644 (file)
@@ -161,6 +161,7 @@ function uEditBuild() {
     
     // jscalendar doesn't like the date format.  trim the time data
     if(patron.dob()) patron.dob( patron.dob().replace(/T.*/, '') );
+    if(patron.expire_date()) patron.expire_date( patron.expire_date().replace(/T.*/, '') );
        
        uEditDraw( 
                uEditFetchIdentTypes(),