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

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

index 49d0b68..ddc5503 100644 (file)
        "xtype" : "ColumnModel",
        "width" : 100,
        "header" : "Who to notify",
-       "$ 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 }",
+       "$ renderer" : "function(v,x,r) {\n\n\n     var ecol = r.data.person_table.lower() + '_email' ;\n     var ncol = r.data.person_table.lower() + '_name' ;\n     return String.format('{0} <u>&lt;{1}&gt;</u>', r.data[ncol], r.data[ecol]); \n }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
        "dataIndex" : "person_id_name"
index eaac862..e3cc10c 100644 (file)
@@ -578,9 +578,9 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
        renderer : function(v,x,r) {
        
        
-            var col = r.data.person_table.lower() + '_email' ;
-            
-            return String.format('{0} <u>&lt;{1}&gt;</u>', v, r.data[col]); 
+            var ecol = r.data.person_table.lower() + '_email' ;
+            var ncol = r.data.person_table.lower() + '_name' ;
+            return String.format('{0} <u>&lt;{1}&gt;</u>', r.data[ncol], r.data[ecol]); 
         },
        width : 100,
        xns : Roo.grid,