Pman.Tab.AdminContactsGroupRight.bjs
[Pman.Admin] / Pman.Tab.AdminContactsGroupRight.js
index 8d6401c..e650c30 100644 (file)
@@ -59,14 +59,18 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
                     {
                     
                             var di = this.colModel.getDataIndex(columnIndex);
-                            if (di != 'accessmask') {
+                            var i = di.split('_').shift();
+                            var k = di.split('_').pop();
+                            
+                            if (i != 'accessmask') {
                                 return;
                             }
-                             
+                    
                             var rec = _this.grid.ds.getAt(rowIndex);
-                            
-                            rec.set('active', rec.data.active ? 0 : 1);
-                            rec.commit();
+                            Roo.log(di);
+                            Roo.log(rec);
+                            rec.set(i+'_'+k, rec.data[i+'_'+k] ? 0 : 1);
+                            //rec.commit();
                              
                             
                     }
@@ -564,7 +568,7 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
                     {
                         xtype: 'ColumnModel',
                         xns: Roo.grid,
-                        dataIndex : 'accessmask',
+                        dataIndex : 'accessmask_AA',
                         header : 'All',
                         sortable : false,
                         width : 50,