Pman.Tab.PersonList.js
authorMichael <michael@roojs.com>
Mon, 9 Mar 2015 07:18:10 +0000 (15:18 +0800)
committerMichael <michael@roojs.com>
Mon, 9 Mar 2015 07:18:10 +0000 (15:18 +0800)
Pman.Tab.PersonList.js

index 6ed72a4..6e6b8c8 100644 (file)
@@ -266,11 +266,12 @@ Pman.Tab.PersonList.prototype = {
                         
                         rec.set('active', rec.data.active ? 0 : 1);
                         rec.commit();
-                        Roo.select('.x-grid-row-selected').item(3).addClass('x-grid-row-fadeout');
-                        (function(){
+
+                        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);
-                        }).defer(5000);
-                        
+                        },this,{single:true});
                         
                     }