Mercurial > lada > lada-client
comparison app/view/widget/base/ComboBox.js @ 1381:12ffe66a6786
Fixed combobox interactions.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 22 Feb 2017 12:53:54 +0100 |
parents | d17501b967f2 |
children |
comparison
equal
deleted
inserted
replaced
1380:6ccaeeeb41ad | 1381:12ffe66a6786 |
---|---|
23 if (this.editable === undefined) { | 23 if (this.editable === undefined) { |
24 this.editable = true; | 24 this.editable = true; |
25 } | 25 } |
26 if (this.allowBlank === undefined) { | 26 if (this.allowBlank === undefined) { |
27 this.allowBlank = true; | 27 this.allowBlank = true; |
28 } | |
29 var dkf = false; | |
30 var ta = 'all'; | |
31 if (this.disableKeyFilter !== undefined) { | |
32 dkf = this.disableKeyFilter; | |
33 ta = this.disableKeyFilter ? 'all' : 'query' | |
28 } | 34 } |
29 this.items = [{ | 35 this.items = [{ |
30 xtype: 'combobox', | 36 xtype: 'combobox', |
31 flex: 1, | 37 flex: 1, |
32 name: this.name, | 38 name: this.name, |
52 msgTarget: 'none', | 58 msgTarget: 'none', |
53 value: this.value, | 59 value: this.value, |
54 tpl: this.tpl, | 60 tpl: this.tpl, |
55 displayTpl: this.displayTpl, | 61 displayTpl: this.displayTpl, |
56 // disable filtering of entries if disableKeyFilter is true | 62 // disable filtering of entries if disableKeyFilter is true |
57 disableKeyFilter: this.disableKeyFilter || false, | 63 disableKeyFilter: dkf, |
58 triggerAction: this.disableKeyFilter? 'all' : 'query' | 64 triggerAction: ta |
59 }, { | 65 }, { |
60 xtype: 'image', | 66 xtype: 'image', |
61 name: 'warnImg', | 67 name: 'warnImg', |
62 src: 'resources/img/dialog-warning.png', | 68 src: 'resources/img/dialog-warning.png', |
63 width: 14, | 69 width: 14, |