DistributorComboBox.js (711B)
1 Ext.define("PartKeepr.DistributorComboBox",{ 2 extend:"PartKeepr.ReloadableComboBox", 3 alias: 'widget.DistributorComboBox', 4 ignoreQuery: false, 5 initComponent: function () { 6 this.store = PartKeepr.getApplication().getDistributorStore(); 7 this.callParent(); 8 }, 9 onTriggerClick: function() { 10 if (!this.ignoreQuery) { 11 this.callParent(); 12 } else { 13 var me = this; 14 if (!me.readOnly && !me.disabled) { 15 if (me.isExpanded) { 16 me.collapse(); 17 } else { 18 me.onFocus({}); 19 me.expand(); 20 } 21 me.inputEl.focus(); 22 } 23 } 24 25 } 26 });