Reverse dojo.mixin() order in AutoFieldWidget to favour passed-in constraints; otherw...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 27 Jul 2010 21:27:24 +0000 (21:27 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 27 Jul 2010 21:27:24 +0000 (21:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17041 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js

index a5b263d..57d9cc2 100644 (file)
@@ -215,7 +215,7 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) {
 
                     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;