From 0e728b719691f2b80c87a538d045cb3a50d1f203 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 18 Sep 2019 12:40:11 +0800 Subject: [PATCH] fix hiding feature --- Pman.Tab.PersonList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.Tab.PersonList.js b/Pman.Tab.PersonList.js index 34cbcc21..cf2c3134 100644 --- a/Pman.Tab.PersonList.js +++ b/Pman.Tab.PersonList.js @@ -263,12 +263,12 @@ Pman.Tab.PersonList.prototype = { } var rec = _this.grid.ds.getAt(rowIndex); - var is_active = rec.data.active; + rec.set('active', rec.data.active ? 0 : 1); rec.commit(); // only hide if viewing active members... - if (is_active) { + if (!_this.showInActive) { var el = Roo.select('.x-grid-row-selected').item(3); el.addClass('x-grid-row-fadeout'); el.on('transitionend',function(){ -- 2.39.2