[open-ils-commits] r17041 - trunk/Open-ILS/web/js/dojo/openils/widget (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jul 27 17:27:30 EDT 2010
Author: dbs
Date: 2010-07-27 17:27:24 -0400 (Tue, 27 Jul 2010)
New Revision: 17041
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
Reverse dojo.mixin() order in AutoFieldWidget to favour passed-in constraints; otherwise we stomp them
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-07-27 19:58:53 UTC (rev 17040)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-07-27 21:27:24 UTC (rev 17041)
@@ -215,7 +215,7 @@
case 'int':
dojo.require('dijit.form.NumberTextBox');
- this.dijitArgs = dojo.mixin(this.dijitArgs || {}, {constraints:{places:0}});
+ this.dijitArgs = dojo.mixin({constraints:{places:0}}, this.dijitArgs || {});
this.widget = new dijit.form.NumberTextBox(this.dijitArgs, this.parentNode);
break;
More information about the open-ils-commits
mailing list