[open-ils-commits] r14358 - branches/rel_1_6/Open-ILS/xul/staff_client/server/patron (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Oct 12 11:04:53 EDT 2009
Author: erickson
Date: 2009-10-12 11:04:50 -0400 (Mon, 12 Oct 2009)
New Revision: 14358
Modified:
branches/rel_1_6/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/Open-ILS/xul/staff_client/server/patron/ue.js
===================================================================
--- branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/ue.js 2009-10-12 14:52:03 UTC (rev 14357)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/ue.js 2009-10-12 15:04:50 UTC (rev 14358)
@@ -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