trim some datetime stamps to mere dates
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Jul 2006 15:19:07 +0000 (15:19 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Jul 2006 15:19:07 +0000 (15:19 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5004 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/summary.js
Open-ILS/xul/staff_client/server/patron/util.js

index 65116aa..1ceaf73 100644 (file)
@@ -256,7 +256,7 @@ patron.summary.prototype = {
                                                function(e) {
                                                        return function() { 
                                                                e.setAttribute('value',
-                                                                       obj.patron.dob()
+                                                                       obj.patron.dob().substr(0,10)
                                                                );
                                                        };
                                                }
index f7849b1..06dc029 100644 (file)
@@ -279,7 +279,7 @@ patron.util.columns = function(modify,params) {
                },
                { 
                        'persist' : 'hidden width', 'id' : 'expire_date', 'label' : 'Expires On', 'flex' : 1, 
-                       'primary' : false, 'hidden' : true, 'render' : 'my.au.expire_date()'
+                       'primary' : false, 'hidden' : true, 'render' : 'my.au.expire_date().substr(0,10)'
                },
                { 
                        'persist' : 'hidden width', 'id' : 'home_ou', 'label' : 'Home Lib', 'flex' : 1, 
@@ -307,7 +307,7 @@ patron.util.columns = function(modify,params) {
                },
                { 
                        'persist' : 'hidden width', 'id' : 'dob', 'label' : 'Birth Date', 'flex' : 1, 
-                       'primary' : false, 'hidden' : true, 'render' : 'my.au.dob()'
+                       'primary' : false, 'hidden' : true, 'render' : 'my.au.dob().substr(0,10)'
                },
                { 
                        'persist' : 'hidden width', 'id' : 'ident_type', 'label' : 'Ident Type', 'flex' : 1,