[open-ils-commits] r12419 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 5 11:01:05 EST 2009
Author: erickson
Date: 2009-03-05 11:01:02 -0500 (Thu, 05 Mar 2009)
New Revision: 12419
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
handle NaN's
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-03-05 13:50:00 UTC (rev 12418)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-03-05 16:01:02 UTC (rev 12419)
@@ -50,6 +50,9 @@
return (value) ? 't' : 'f'
case 'timestamp':
return dojo.date.stamp.toISOString(value);
+ case 'int':
+ case 'float':
+ if(isNaN(value)) value = 0;
default:
return (value === '') ? null : value;
}
More information about the open-ils-commits
mailing list