Pman.Tab.AdminContactsGroupRight.bjs
[Pman.Admin] / Pman.Tab.AdminContactsGroupRight.js
index 5cc7998..27b96b8 100644 (file)
@@ -132,6 +132,18 @@ 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.set('accessmask_'+ee, 1);
+                                });
+                                if(e.data.accessmask == e.data.FullMask){
+                                    e.set('accessmask_AA', 1);
+                                }
+                            });
                         }
                     },
                     remoteSort : true,
@@ -296,6 +308,7 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
                         sortable : false,
                         width : 50,
                         renderer : function(v,x,r) {
+                             
                             var state = v> 0 ?  '-checked' : '';
                         
                             return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
@@ -390,8 +403,7 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
                         header : 'Print/Export',
                         width : 75,
                         renderer : function(v,x,r) {  
-                            Roo.log(x);
-                            Roo.log(r);
+                            
                             var state = v> 0 ?  '-checked' : '';
                         
                             return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';