changeset 1381:12ffe66a6786

Fixed combobox interactions.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 22 Feb 2017 12:53:54 +0100
parents 6ccaeeeb41ad
children c8827424723b
files app/view/widget/base/ComboBox.js
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/widget/base/ComboBox.js	Fri Feb 17 12:05:30 2017 +0100
+++ b/app/view/widget/base/ComboBox.js	Wed Feb 22 12:53:54 2017 +0100
@@ -26,6 +26,12 @@
         if (this.allowBlank === undefined) {
             this.allowBlank = true;
         }
+        var dkf = false;
+        var ta = 'all';
+        if (this.disableKeyFilter !== undefined) {
+            dkf = this.disableKeyFilter;
+            ta = this.disableKeyFilter ? 'all' : 'query'
+        }
         this.items = [{
             xtype: 'combobox',
             flex: 1,
@@ -54,8 +60,8 @@
             tpl: this.tpl,
             displayTpl: this.displayTpl,
             // disable filtering of entries if disableKeyFilter is true
-            disableKeyFilter: this.disableKeyFilter || false,
-            triggerAction: this.disableKeyFilter? 'all' : 'query'
+            disableKeyFilter: dkf,
+            triggerAction: ta
         }, {
             xtype: 'image',
             name: 'warnImg',

http://lada.wald.intevation.org