[open-ils-commits] r14359 - branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Oct 12 11:05:23 EDT 2009


Author: erickson
Date: 2009-10-12 11:05:21 -0400 (Mon, 12 Oct 2009)
New Revision: 14359

Modified:
   branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js
Log:
jscalendar doesn't like the DoB date format.  trim the DoB to just the date part

Modified: branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js
===================================================================
--- branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js	2009-10-12 15:04:50 UTC (rev 14358)
+++ branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js	2009-10-12 15:05:21 UTC (rev 14359)
@@ -158,6 +158,9 @@
 
 	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(),



More information about the open-ils-commits mailing list