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

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

index 8f449b6..26f4c08 100644 (file)
                             "sortable": false,
                             "width": 50,
                             "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\n    state = v == fm ? '-checked' : '';\n\n    \n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n}",
                             "|xns": "Roo.grid"
                         },
                         {
index ffad7af..4079c28 100644 (file)
@@ -700,10 +700,11 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
                         sortable : false,
                         width : 50,
                         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); 
+                        
+                            state = v == fm ? '-checked' : '';
+                        
+                            
+                            return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
                         }
                     },
                     {