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

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

index 360b2fd..f6b3312 100644 (file)
                             "sortable": false,
                             "width": 150,
                             "xtype": "ColumnModel",
-                            "|renderer": "function(v,x,r) {\n    return String.format('<span qtip=\"{1}\">{0}</span>', v.split('.').shift(), v);\n}",
+                            "|renderer": "function(v,x,r) {\n    if(!v){\n        return;\n    }\n    return String.format('<span qtip=\"{1}\">{0}</span>', v.split('.').shift(), v);\n}",
                             "|xns": "Roo.grid"
                         },
                         {
index 50fb4fa..5449c4e 100644 (file)
@@ -713,6 +713,9 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
                         sortable : false,
                         width : 150,
                         renderer : function(v,x,r) {
+                            if(!v){
+                                return;
+                            }
                             return String.format('<span qtip="{1}">{0}</span>', v.split('.').shift(), v);
                         }
                     },