[open-ils-commits] r15326 - branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 15 15:48:14 EST 2010
Author: erickson
Date: 2010-01-15 15:48:09 -0500 (Fri, 15 Jan 2010)
New Revision: 15326
Modified:
branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
patch from Lebbeous Fogle-Weekley to exit gracefully from timestamp display when the timestamp value is null/empty
Modified: branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-01-15 20:47:36 UTC (rev 15325)
+++ branches/rel_1_6/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-01-15 20:48:09 UTC (rev 15326)
@@ -89,6 +89,7 @@
openils.widget.AutoFieldWidget.localeStrings.TRUE :
openils.widget.AutoFieldWidget.localeStrings.FALSE;
case 'timestamp':
+ if (!value) return '';
dojo.require('dojo.date.locale');
dojo.require('dojo.date.stamp');
var date = dojo.date.stamp.fromISOString(value);
More information about the open-ils-commits
mailing list