From ff00b1ae11c4c9cff9a07af542346aede649d4cf Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 17 Sep 2010 18:53:38 +0800 Subject: [PATCH] Pman.Dialog.CorePersonContact.js --- Pman.Dialog.CorePersonContact.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Pman.Dialog.CorePersonContact.js b/Pman.Dialog.CorePersonContact.js index eeea595d..846f0467 100644 --- a/Pman.Dialog.CorePersonContact.js +++ b/Pman.Dialog.CorePersonContact.js @@ -82,25 +82,31 @@ Pman.Dialog.CorePersonContact = { xtype: 'ComboBox', xns: Roo.form, allowBlank : 'false', + displayField : 'code', editable : 'false', emptyText : "Select Companies", + fieldLabel : 'Company', forceSelection : true, + hiddenName : 'company_id', listWidth : 400, loadingText : "Searching...", minChars : 2, + name : 'company_id_code', pageSize : 20, qtip : "Select Companies", + queryParam : 'query[code]', selectOnFocus : true, + tpl : '
{code}
', triggerAction : 'all', typeAhead : true, - width : 300, - tpl : '
{code}
', - queryParam : 'query[code]', - fieldLabel : 'Company', valueField : 'id', - displayField : 'code', - hiddenName : 'company_id', - name : 'company_id_code', + width : 300, + listeners : { + add : function (combo) + { + + } + }, store : { xtype: 'Store', xns: Roo.data, -- 2.39.2