From: Alan Knowles Date: Thu, 12 May 2011 08:21:52 +0000 (+0800) Subject: Pman.Tab.AdminOffice.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=b2675b89668c40f43e2000481be766486271e01c Pman.Tab.AdminOffice.bjs --- diff --git a/Pman.Tab.AdminOffice.bjs b/Pman.Tab.AdminOffice.bjs index 2c3624d..740489a 100644 --- a/Pman.Tab.AdminOffice.bjs +++ b/Pman.Tab.AdminOffice.bjs @@ -30,9 +30,12 @@ "|xns": "Roo.grid", "items": [ { + "listeners": { + "beforeload": "function (_self, o)\n{\n try {\n var sm = Pman.Tab.Companies.grid.getSelectionModel();\n sm = sm.getSelected();\n if (!sm || !sm.data.id) {\n // mask??\n return false;\n }\n \n o.params.company_id = sm.data.id ;\n } catch (e) {\n return false;\n }\n \n }" + }, "*prop": "dataSource", - "xtype": "Store", "remoteSort": true, + "xtype": "Store", "|sortInfo": "{ field : 'name', direction: 'ASC' }", "|xns": "Roo.data", "items": [