diff app/view/widget/base/ComboBox.js @ 1080:15d7b7a9e177

Override getValue for Netzbetreiber Combobox to allways return the correct value.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 13 Apr 2016 16:10:25 +0200
parents d6e259e76de6
children 7baaf2cd3f57
line wrap: on
line diff
--- a/app/view/widget/base/ComboBox.js	Wed Apr 13 13:57:36 2016 +0200
+++ b/app/view/widget/base/ComboBox.js	Wed Apr 13 16:10:25 2016 +0200
@@ -20,6 +20,10 @@
     margin: '0, 0, 5, 0',
 
     initComponent: function() {
+        console.log(this.editable);
+        if (this.editable === undefined) {
+            this.editable = true;
+        }
         this.items = [{
             xtype: 'combobox',
             flex: 1,
@@ -39,7 +43,7 @@
             minChars: this.minChars,
             maxChars: this.maxChars,
             multiSelect: this.multiSelect,
-            editable: this.editable || true,
+            editable: this.editable,
             readOnly: this.readOnly,
             forceSelection: this.forceSelection || false,
             msgTarget: 'none',

http://lada.wald.intevation.org