From 7438fbd3349d51b865c404f2337249438f6cad55 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 18 Sep 2019 12:37:21 +0800 Subject: [PATCH] only hide if viewing active members. --- Pman.Tab.PersonList.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Pman.Tab.PersonList.js b/Pman.Tab.PersonList.js index 9da9e679..34cbcc21 100644 --- a/Pman.Tab.PersonList.js +++ b/Pman.Tab.PersonList.js @@ -263,15 +263,18 @@ 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(); - - var el = Roo.select('.x-grid-row-selected').item(3); - el.addClass('x-grid-row-fadeout'); - el.on('transitionend',function(){ - _this.grid.ds.remove(rec); - },this,{single:true}); + + // only hide if viewing active members... + if (is_active) { + var el = Roo.select('.x-grid-row-selected').item(3); + el.addClass('x-grid-row-fadeout'); + el.on('transitionend',function(){ + _this.grid.ds.remove(rec); + },this,{single:true}); + } } -- 2.39.2