From 37735443559faa5bc8155cfb06f4022bd78d646c Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 13 Sep 2012 13:00:54 +0800 Subject: [PATCH] Pman.Tab.AdminContactsGroupRight.bjs Pman.Tab.AdminContactsGroupRight.js --- Pman.Tab.AdminContactsGroupRight.bjs | 2 +- Pman.Tab.AdminContactsGroupRight.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Pman.Tab.AdminContactsGroupRight.bjs b/Pman.Tab.AdminContactsGroupRight.bjs index ae42f62..360b2fd 100644 --- a/Pman.Tab.AdminContactsGroupRight.bjs +++ b/Pman.Tab.AdminContactsGroupRight.bjs @@ -264,7 +264,7 @@ "sortable": false, "width": 300, "xtype": "ColumnModel", - "|renderer": "function(v,x,r)\n{\n \n \n return v;\n}", + "|renderer": "function(v,x,r)\n{\n if (r.json.descript && r.json.descript.length) {\n return String.format('{0}',r.json.descript);\n }\n \n return '???' + v;\n}", "|xns": "Roo.grid" }, { diff --git a/Pman.Tab.AdminContactsGroupRight.js b/Pman.Tab.AdminContactsGroupRight.js index 00060d9..50fb4fa 100644 --- a/Pman.Tab.AdminContactsGroupRight.js +++ b/Pman.Tab.AdminContactsGroupRight.js @@ -725,9 +725,11 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({ width : 300, renderer : function(v,x,r) { + if (r.json.descript && r.json.descript.length) { + return String.format('{0}',r.json.descript); + } - - return v; + return '???' + v; } }, { -- 2.39.2