From 10e2a954f8ed265b2ff020cc61434cd17eb70c46 Mon Sep 17 00:00:00 2001 From: benny Date: Fri, 13 Jul 2018 15:58:09 +0800 Subject: [PATCH] Pman.Tab.PersonList.js --- Pman.Tab.PersonList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pman.Tab.PersonList.js b/Pman.Tab.PersonList.js index 316c6be8..51c10b36 100644 --- a/Pman.Tab.PersonList.js +++ b/Pman.Tab.PersonList.js @@ -256,14 +256,14 @@ Pman.Tab.PersonList.prototype = { }, cellclick : function (_self, rowIndex, columnIndex, e) - { console.log(_this.grid.ds.getAt(rowIndex)); + { var di = this.colModel.getDataIndex(columnIndex); if (di != 'active') { return; } var rec = _this.grid.ds.getAt(rowIndex); - console.log(rec); + rec.set('active', rec.data.active ? 0 : 1); rec.commit(); @@ -456,7 +456,7 @@ Pman.Tab.PersonList.prototype = { icon: rootURL + '/Pman/templates/images/trash.gif', handler : function(){ //Pman.genericDelete(_this, 'Person'); - + var rec = _this.grid.ds.getAt(rowIndex); -- 2.39.2