Changing min_chars for autocomplete to 1 char

This commit is contained in:
Jason Denney
2013-08-28 23:01:29 -04:00
parent 06856f115c
commit 4d008163e1
6 changed files with 41 additions and 7 deletions
@@ -2,6 +2,13 @@
initComponent: function(){
// calling superclass's initComponent
this.callParent();
//due to Netzke bug, :min_chars attribute doesn't work
var min_char_columns = ["bike__shop_id"]
Ext.each(min_char_columns, function(column, index) {
Ext.ComponentManager.get(column).editor.minChars = 1;
});
this.getView().on('itemclick', function(view, record){
// The beauty of using Ext.Direct: calling 3 endpoints in a row, which results in a single call to the server!
this.selectCustomer({customer_id: record.get('id'), customer_type: 'User'});