diff app/view/widget/OrtTyp.js @ 1320:3a3148d50b9c

Use new combobox widgets as input elements in create ort window.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 03 Feb 2017 14:30:16 +0100
parents f772e70ff723
children d52d4b55914b
line wrap: on
line diff
--- a/app/view/widget/OrtTyp.js	Fri Feb 03 13:18:12 2017 +0100
+++ b/app/view/widget/OrtTyp.js	Fri Feb 03 14:30:16 2017 +0100
@@ -15,10 +15,14 @@
     store: 'OrtTyp',
     displayField: 'id',
     valueField: 'id',
+    editable: this.editable || false,
+    forceSelection: true,
     // Enable filtering of comboboxes
+    autoSelect: false,
     queryMode: 'local',
     triggerAction: 'all',
     typeAhead: false,
+    minChars: 0,
     tpl: Ext.create("Ext.XTemplate",
         '<tpl for="."><div class="x-combo-list-item  x-boundlist-item" >' +
             '{code} - {ortTyp}</div></tpl>'),
@@ -33,9 +37,6 @@
         if (!this.store) {
             this.store = Ext.create('Lada.store.OrtTyp');
         }
-        else {
-            this.store.clearFilter();
-        }
         this.callParent(arguments);
     }
 });

http://lada.wald.intevation.org