Pman.Tab.AdminContactsGroupRight.bjs
authorChris <chris@roojs.com>
Thu, 13 Sep 2012 05:00:54 +0000 (13:00 +0800)
committerChris <chris@roojs.com>
Thu, 13 Sep 2012 05:00:54 +0000 (13:00 +0800)
Pman.Tab.AdminContactsGroupRight.js

Pman.Tab.AdminContactsGroupRight.bjs
Pman.Tab.AdminContactsGroupRight.js

index ae42f62..360b2fd 100644 (file)
                             "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"
                         },
                         {
index 00060d9..50fb4fa 100644 (file)
@@ -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;
                         }
                     },
                     {