[open-ils-commits] r12208 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Feb 17 17:49:42 EST 2009
Author: erickson
Date: 2009-02-17 17:49:37 -0500 (Tue, 17 Feb 2009)
New Revision: 12208
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
added int/float widgets
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-02-17 18:06:57 UTC (rev 12207)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-02-17 22:49:37 UTC (rev 12208)
@@ -125,6 +125,17 @@
this.widget = new dijit.form.CurrencyTextBox(this.dijitArgs, this.parentNode);
break;
+ case 'int':
+ dojo.require('dijit.form.NumberTextBox');
+ this.dijitArgs = dojo.mixin(this.dijitArgs || {}, {constraints:{places:0}});
+ this.widget = new dijit.form.NumberTextBox(this.dijitArgs, this.parentNode);
+ break;
+
+ case 'float':
+ dojo.require('dijit.form.NumberTextBox');
+ this.widget = new dijit.form.NumberTextBox(this.dijitArgs, this.parentNode);
+ break;
+
case 'timestamp':
dojo.require('dijit.form.DateTextBox');
dojo.require('dojo.date.stamp');
More information about the open-ils-commits
mailing list