From: Alan Knowles Date: Fri, 17 Sep 2010 10:53:38 +0000 (+0800) Subject: Pman.Dialog.CorePersonContact.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=ff00b1ae11c4c9cff9a07af542346aede649d4cf Pman.Dialog.CorePersonContact.js --- 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,