[open-ils-commits] r12423 - 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:25:42 EST 2009
Author: erickson
Date: 2009-03-05 11:25:40 -0500 (Thu, 05 Mar 2009)
New Revision: 12423
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
more int/float handling
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-03-05 16:24:55 UTC (rev 12422)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-03-05 16:25:40 UTC (rev 12423)
@@ -79,7 +79,12 @@
return dojo.date.locale.format(date, {formatLength:'short'});
case 'org_unit':
return fieldmapper.aou.findOrgUnit(value).shortname();
+ case 'int':
+ case 'float':
+ if(isNaN(value)) value = 0;
default:
+ if(value === undefined || value === null)
+ value = '';
return value+'';
}
},
More information about the open-ils-commits
mailing list