From db968993e3699bb6ccc518d7c165c1bf2825bd1f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 14 Sep 2012 15:06:51 +0800 Subject: [PATCH] Pman.Tab.AdminContactsGroupRight.bjs Pman.Tab.AdminContactsGroupRight.js --- Pman.Tab.AdminContactsGroupRight.bjs | 1 - Pman.Tab.AdminContactsGroupRight.js | 7 ------- 2 files changed, 8 deletions(-) diff --git a/Pman.Tab.AdminContactsGroupRight.bjs b/Pman.Tab.AdminContactsGroupRight.bjs index 32c3a34..47fd8ca 100644 --- a/Pman.Tab.AdminContactsGroupRight.bjs +++ b/Pman.Tab.AdminContactsGroupRight.bjs @@ -22,7 +22,6 @@ { "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 _this.dataUpdate = typeof(_this.dataUpdate) =='undefined' ? {} : _this.dataUpdate;\n \n var di = this.colModel.getDataIndex(columnIndex);\n var i = di.split('_').shift();\n var k = di.split('_').pop();\n if (i != 'accessmask') {\n return;\n }\n var rec = _this.grid.ds.getAt(rowIndex);\n if(k == 'AA'){\n var fm = rec.data.FullMask.split('');\n Roo.each(fm, function(e){\n rec.set(i+'_'+e, rec.data[i+'_'+k] ? 0 : 1);\n });\n } \n rec.set(i+'_'+k, rec.data[i+'_'+k] ? 0 : 1);\n //rec.data.accessmask = rec.data.accessmask + rec\n //Roo.log(rec);\n _this.dataUpdate[rec.data.id] = rec.data.accessmask;\n\n //rec.commit();\n \n \n}" }, "*prop": "grid", diff --git a/Pman.Tab.AdminContactsGroupRight.js b/Pman.Tab.AdminContactsGroupRight.js index 97759dd..771dfdb 100644 --- a/Pman.Tab.AdminContactsGroupRight.js +++ b/Pman.Tab.AdminContactsGroupRight.js @@ -48,13 +48,6 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({ this.footer.onClick('first'); } }, - rowdblclick : function (_self, rowIndex, e) - { - if (!_this.dialog) return; - _this.dialog.show( this.getDataSource().getAt(rowIndex), function() { - _this.grid.footer.onClick('first'); - }); - }, cellclick : function (_self, rowIndex, columnIndex, e) { _this.dataUpdate = typeof(_this.dataUpdate) =='undefined' ? {} : _this.dataUpdate; -- 2.39.2