From ca42ae3897df0fa43f7f99b770849c0437d3d513 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 5 Dec 2012 14:13:15 +0800 Subject: [PATCH] Pman.Tab.AdminNotify.bjs Pman.Tab.AdminNotify.js --- Pman.Tab.AdminNotify.bjs | 2 +- Pman.Tab.AdminNotify.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Pman.Tab.AdminNotify.bjs b/Pman.Tab.AdminNotify.bjs index 202064f..a38f897 100644 --- a/Pman.Tab.AdminNotify.bjs +++ b/Pman.Tab.AdminNotify.bjs @@ -96,7 +96,7 @@ "items": [ { "listeners": { - "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n" + "|beforeload": "function (_self, o){\n o.params = o.params || {};\n o.params._distinct='person_id,person_id_name';\n o.params._columns='person_id,person_id_name';\n o.params['!person_id_name'] = '';\n \n // set more here\n}\n" }, "*prop": "store", "remoteSort": true, diff --git a/Pman.Tab.AdminNotify.js b/Pman.Tab.AdminNotify.js index cee6beb..c3b24c1 100644 --- a/Pman.Tab.AdminNotify.js +++ b/Pman.Tab.AdminNotify.js @@ -265,6 +265,10 @@ Pman.Tab.AdminNotify = new Roo.XComponent({ listeners : { beforeload : function (_self, o){ o.params = o.params || {}; + o.params._distinct='person_id,person_id_name'; + o.params._columns='person_id,person_id_name'; + o.params['!person_id_name'] = ''; + // set more here } }, -- 2.39.2