Pman.Tab.AdminContactsGroupRight.bjs
[Pman.Admin] / Pman.Tab.AdminContactsGroupRight.js
index c16aaf2..358a229 100644 (file)
@@ -132,6 +132,15 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
                                     });
                                 }
                             });
+                        },
+                        load : function (_self, records, options)
+                        {
+                            Roo.each(records, function(e){
+                                var k = e.data.accessmask.split('');
+                                Roo.each(k, function(ee){
+                                    e.data.set('accessmask_'+ee, 1);
+                                });
+                            });
                         }
                     },
                     remoteSort : true,
@@ -296,11 +305,7 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
                         sortable : false,
                         width : 50,
                         renderer : function(v,x,r) {
-                            /*var k = r.data.accesmask.split('');
-                            Roo.each(k, function(e){
-                                
-                            });*/
-                            Roo.log(this);
+                             
                             var state = v> 0 ?  '-checked' : '';
                         
                             return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
@@ -395,9 +400,7 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
                         header : 'Print/Export',
                         width : 75,
                         renderer : function(v,x,r) {  
-                            Roo.log(x);
-                            Roo.log(r);
-                            r.data.accesmask
+                            
                             var state = v> 0 ?  '-checked' : '';
                         
                             return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';