From 6d4053ee46916a0ab281974c932048f7d4e7f5e2 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 12 Oct 2009 15:05:21 +0000 Subject: [PATCH] jscalendar doesn't like the DoB date format. trim the DoB to just the date part 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/patron/ue.js b/Open-ILS/xul/staff_client/server/patron/ue.js index 6d8306409f..67bc1cc95e 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue.js +++ b/Open-ILS/xul/staff_client/server/patron/ue.js @@ -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(), -- 2.11.0