X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Dialog.CorePersonContact.bjs;h=18c36b925933460d4ac5a5d4d39a948c292cbca5;hb=337c112daa9e2f616387d6a1619346ae1c58ca7b;hp=3f7acd2bdb73d9722929a133f79ec119c65bd7dd;hpb=98c3085337a209532c7348f31ccb159487d0f1ba;p=Pman.Core 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",