From: Alan Knowles Date: Wed, 18 Sep 2019 04:37:21 +0000 (+0800) Subject: only hide if viewing active members. X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=7438fbd3349d51b865c404f2337249438f6cad55 only hide if viewing active members. --- 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}); + } }