Pman.Tab.AdminContactsGroupRight.bjs
authorChris <chris@roojs.com>
Thu, 13 Sep 2012 05:09:15 +0000 (13:09 +0800)
committerChris <chris@roojs.com>
Thu, 13 Sep 2012 05:09:15 +0000 (13:09 +0800)
Pman.Tab.AdminContactsGroupRight.js

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

index 5baab33..59b53fc 100644 (file)
@@ -23,7 +23,7 @@
                     "listeners": {
                         "|render": "function() \n{\n    _this.grid = this; \n    if (!_this.dialog) {\n        _this.dialog = Pman.Dialog.PersonEdit;\n        \n    }\n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
                         "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n",
-                        "cellclick": "function (_self, rowIndex, columnIndex, e)\n{\n\n        var di = this.colModel.getDataIndex(columnIndex);\n        if (di != 'accessmask') {\n            return;\n        }\n         \n        var rec = _this.grid.ds.getAt(rowIndex);\n        \n        rec.set('active', rec.data.active ? 0 : 1);\n        rec.commit();\n         \n        \n}"
+                        "cellclick": "function (_self, rowIndex, columnIndex, e)\n{\n\n        var di = this.colModel.getDataIndex(columnIndex);\n        di.split('_').pop();\n        if (di[0] != 'accessmask') {\n            return;\n        }\n         \n        var rec = _this.grid.ds.getAt(rowIndex);\n        \n        rec.set('active', rec.data.active ? 0 : 1);\n        rec.commit();\n         \n        \n}"
                     },
                     "*prop": "grid",
                     "ddGroup": "groupDD",
index 8d6401c..b250d7e 100644 (file)
@@ -59,7 +59,8 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
                     {
                     
                             var di = this.colModel.getDataIndex(columnIndex);
-                            if (di != 'accessmask') {
+                            di.split('_').pop();
+                            if (di[0] != 'accessmask') {
                                 return;
                             }