changeset 817:1321efe444f0

ComboBox ForceSelection defaults to false now, ProbenehmerId can not be negative
author Dustin Demuth <dustin@intevation.de>
date Fri, 29 May 2015 08:31:19 +0200
parents e25fcc9269df
children 097d4edc2f00
files app/view/form/Probe.js app/view/widget/Probenart.js app/view/widget/base/ComboBox.js
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
                             }, {
--- 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;
--- 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

http://lada.wald.intevation.org