# HG changeset patch # User Dustin Demuth # Date 1432881079 -7200 # Node ID 1321efe444f0b566b62b801b31bd439f9facf8b0 # Parent e25fcc9269df94269a84f45c8f66ed84974057fe ComboBox ForceSelection defaults to false now, ProbenehmerId can not be negative diff -r e25fcc9269df -r 1321efe444f0 app/view/form/Probe.js --- a/app/view/form/Probe.js Thu May 28 17:37:50 2015 +0200 +++ b/app/view/form/Probe.js Fri May 29 08:31:19 2015 +0200 @@ -138,6 +138,7 @@ allowDecimals: false, name: 'probeNehmerId', fieldLabel: 'Probennehmer', + minValue: 0, anchor: '100%', labelWidth: 105 }, { diff -r e25fcc9269df -r 1321efe444f0 app/view/widget/Probenart.js --- a/app/view/widget/Probenart.js Thu May 28 17:37:50 2015 +0200 +++ b/app/view/widget/Probenart.js Fri May 29 08:31:19 2015 +0200 @@ -20,6 +20,7 @@ triggerAction: 'all', typeAhead: false, minChars: 0, + maxChars: 1, initComponent: function() { var i18n = Lada.getApplication().bundle; diff -r e25fcc9269df -r 1321efe444f0 app/view/widget/base/ComboBox.js --- a/app/view/widget/base/ComboBox.js Thu May 28 17:37:50 2015 +0200 +++ b/app/view/widget/base/ComboBox.js Fri May 29 08:31:19 2015 +0200 @@ -34,9 +34,10 @@ triggerAction: this.triggerAction, typeAhead: this.typeAhead, minChars: this.minChars, + maxChars: this.maxChars, multiSelect: this.multiSelect, editable: this.editable || true, - forceSelection: this.forceSelection || true, + forceSelection: this.forceSelection || false, msgTarget: 'none', tpl: this.tpl, displayTpl: this.displayTpl