Pman.Tab.AdminContactsGroupRight.bjs
authorChris <chris@roojs.com>
Wed, 12 Sep 2012 10:03:37 +0000 (18:03 +0800)
committerChris <chris@roojs.com>
Wed, 12 Sep 2012 10:03:37 +0000 (18:03 +0800)
Pman.Tab.AdminContactsGroupRight.js

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

index 97563da..8fda0b1 100644 (file)
                             "sortable": true,
                             "width": 150,
                             "xtype": "ColumnModel",
-                            "|renderer": "function(v,x,r) {\n    if (r.data.office_id) {\n        return String.format('{0} - {1}', v, r.data.office_id_name); \n    } \n    return String.format('{0}', v); \n}",
+                            "|renderer": "function(v,x,r) {\n    return String.format('<span qtip=\"{1}\">{0}</span>', v.split('.').shift(), v);\n}",
                             "|xns": "Roo.grid"
                         },
                         {
index 0a6feff..04c7f3f 100644 (file)
@@ -715,10 +715,7 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
                         sortable : true,
                         width : 150,
                         renderer : function(v,x,r) {
-                            if (r.data.office_id) {
-                                return String.format('{0} - {1}', v, r.data.office_id_name); 
-                            } 
-                            return String.format('{0}', v); 
+                            return String.format('<span qtip="{1}">{0}</span>', v.split('.').shift(), v);
                         }
                     },
                     {