From e4fe2d15f2f9fa84eb77202c0feb335b0f74c929 Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 27 Jul 2010 21:27:24 +0000 Subject: [PATCH] Reverse dojo.mixin() order in AutoFieldWidget to favour passed-in constraints; otherwise we stomp them 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index a5b263d7b..57d9cc28b 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -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; -- 2.11.0