Pman.Tab.AdminNotify.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 11 Jun 2015 05:14:28 +0000 (13:14 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 11 Jun 2015 05:14:28 +0000 (13:14 +0800)
Pman.Tab.AdminNotify.js

Pman.Tab.AdminNotify.bjs
Pman.Tab.AdminNotify.js

index 7237cbd..49d0b68 100644 (file)
        "xtype" : "ColumnModel",
        "width" : 100,
        "header" : "Who to notify",
-       "$ renderer" : "function(v,x,r) {\n     return String.format('{0} <u>&lt;{1}&gt;</u>', v, r.data.person_id_email); \n }",
+       "$ renderer" : "function(v,x,r) {\n\n\n     var col = r.data.person_table.lower() + '_email' ;\n     \n     return String.format('{0} <u>&lt;{1}&gt;</u>', v, r.data[col]); \n }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
        "dataIndex" : "person_id_name"
index 07ff889..eaac862 100644 (file)
@@ -576,7 +576,11 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
        dataIndex : 'person_id_name',
        header : _this._strings['24463f10155b8af973300f86302c4fde'],
        renderer : function(v,x,r) {
-            return String.format('{0} <u>&lt;{1}&gt;</u>', v, r.data.person_id_email); 
+       
+       
+            var col = r.data.person_table.lower() + '_email' ;
+            
+            return String.format('{0} <u>&lt;{1}&gt;</u>', v, r.data[col]); 
         },
        width : 100,
        xns : Roo.grid,