From 337c112daa9e2f616387d6a1619346ae1c58ca7b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 17 Sep 2010 18:53:38 +0800 Subject: [PATCH] Pman.Dialog.CorePersonContact.bjs --- Pman.Dialog.CorePersonContact.bjs | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Pman.Dialog.CorePersonContact.bjs b/Pman.Dialog.CorePersonContact.bjs index 3f7acd2b..18c36b92 100644 --- a/Pman.Dialog.CorePersonContact.bjs +++ b/Pman.Dialog.CorePersonContact.bjs @@ -37,28 +37,31 @@ "|url": "baseURL + '/Roo/Person.php'", "items": [ { - "|xns": "Roo.form", - "xtype": "ComboBox", "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, + "xtype": "ComboBox", + "|xns": "Roo.form", + "listeners": { + "add": "function (combo)\n{\n\n}" + }, "items": [ { "*prop": "store", -- 2.39.2