From: Alan Knowles Date: Fri, 17 Sep 2010 10:54:59 +0000 (+0800) Subject: Pman.Dialog.CorePersonContact.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=177ebe901c85174f8df9fe22ad4a37bfe474fd84 Pman.Dialog.CorePersonContact.bjs --- diff --git a/Pman.Dialog.CorePersonContact.bjs b/Pman.Dialog.CorePersonContact.bjs index 17796464..b0a3a495 100644 --- a/Pman.Dialog.CorePersonContact.bjs +++ b/Pman.Dialog.CorePersonContact.bjs @@ -118,14 +118,14 @@ "name": "office_id_name", "items": [ { + "listeners": { + "|beforeload": "function (_self, o){\n o.params = o.params || {};\n var coid = _this.form.findField('company_id').getValue();\n o.params.company_id = coid;\n}\n" + }, "*prop": "store", - "xtype": "Store", - "|xns": "Roo.data", "remoteSort": true, + "xtype": "Store", "|sortInfo": "{ direction : 'ASC', field: 'id' }", - "listeners": { - "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n" - }, + "|xns": "Roo.data", "items": [ { "*prop": "proxy",