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