[open-ils-commits] r15325 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 15 15:47:41 EST 2010
Author: erickson
Date: 2010-01-15 15:47:36 -0500 (Fri, 15 Jan 2010)
New Revision: 15325
Modified:
trunk/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: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-01-15 16:20:28 UTC (rev 15324)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-01-15 20:47:36 UTC (rev 15325)
@@ -120,6 +120,7 @@
default: return 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