Pman.Tab.PersonList.js
[Pman.Core] / Pman.Tab.PersonList.js
index eebc8b5..d2334b4 100644 (file)
@@ -249,6 +249,7 @@ Pman.Tab.PersonList.prototype = {
                 listeners : {
                     rowdblclick : function(g, ri, e) {
                         var s = g.getDataSource().getAt(ri).data;
+                        Roo.log('rowdblclick fire');
                         if (_this.dialog() && Pman.hasPerm(_this.permName, 'E')) {
                             _this.dialog().show(s,refreshPager);
                         }
@@ -266,11 +267,12 @@ Pman.Tab.PersonList.prototype = {
                         
                         rec.set('active', rec.data.active ? 0 : 1);
                         rec.commit();
-                        Roo.select('.x-grid-row-selected').item(3).addClass('fadeout');
-                        (function(){
-                            refreshPager();
-                        }).defer(5000);
-                        
+
+                        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});
                         
                     }