From: dbs Date: Tue, 27 Jul 2010 21:27:24 +0000 (+0000) Subject: Reverse dojo.mixin() order in AutoFieldWidget to favour passed-in constraints; otherw... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e4fe2d15f2f9fa84eb77202c0feb335b0f74c929;p=evergreen%2Fbjwebb.git 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 --- 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;