From: Alan Knowles Date: Fri, 17 Jan 2014 07:34:36 +0000 (+0800) Subject: Pman.Tab.AdminNotify.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=9706068a708e4cac8832542c4724c5734533d83b Pman.Tab.AdminNotify.bjs Pman.Tab.AdminNotify.js --- diff --git a/Pman.Tab.AdminNotify.bjs b/Pman.Tab.AdminNotify.bjs index 8a8f60e..d107577 100644 --- a/Pman.Tab.AdminNotify.bjs +++ b/Pman.Tab.AdminNotify.bjs @@ -1,5 +1,5 @@ { - "id": "roo-file-162", + "id": "roo-file-210", "name": "Pman.Tab.AdminNotify", "parent": "Pman.Tab.AdminWatchNotify", "title": "Pman.Tab.AdminNotify", @@ -202,7 +202,16 @@ "*prop": "colModel[]", "dataIndex": "person_id_name", "header": "Who to notify", - "width": 200, + "width": 100, + "xtype": "ColumnModel", + "|renderer": "function(v,x,r) {\n return String.format('{0} <{1}>', v, r.data.person_id_email); \n }", + "|xns": "Roo.grid" + }, + { + "*prop": "colModel[]", + "dataIndex": "trigger_event_id", + "header": "Triggered by", + "width": 100, "xtype": "ColumnModel", "|renderer": "function(v,x,r) {\n return String.format('{0} <{1}>', v, r.data.person_id_email); \n }", "|xns": "Roo.grid" diff --git a/Pman.Tab.AdminNotify.js b/Pman.Tab.AdminNotify.js index 47653f3..bc8a671 100644 --- a/Pman.Tab.AdminNotify.js +++ b/Pman.Tab.AdminNotify.js @@ -380,7 +380,17 @@ Pman.Tab.AdminNotify = new Roo.XComponent({ xns: Roo.grid, dataIndex : 'person_id_name', header : 'Who to notify', - width : 200, + width : 100, + renderer : function(v,x,r) { + return String.format('{0} <{1}>', v, r.data.person_id_email); + } + }, + { + xtype: 'ColumnModel', + xns: Roo.grid, + dataIndex : 'trigger_event_id', + header : 'Triggered by', + width : 100, renderer : function(v,x,r) { return String.format('{0} <{1}>', v, r.data.person_id_email); }