DataObjects/Core_email.php
[Pman.Core] / Pman.Tab.PersonList.js
index ab725ed..22b5f9f 100644 (file)
@@ -188,10 +188,10 @@ Pman.Tab.PersonList.prototype = {
                 ds:   new Roo.data.Store({
                     // load using HTTP
                     proxy: new Roo.data.HttpProxy({
-                        url: baseURL + '/Roo/Person.html',
+                        url: baseURL + '/Roo/core_person',
                         method: 'GET'
                     }),
-                    reader: Pman.Readers.Person,
+                    reader: new Roo.data.JsonReader({}, []),
                     remoteSort: true,
                     listeners : {
                         
@@ -211,7 +211,7 @@ Pman.Tab.PersonList.prototype = {
                             // only used to change active status.
                             
                             new Pman.Request({
-                                url : baseURL + '/Roo/Person.php',
+                                url : baseURL + '/Roo/core_person',
                                 method :'POST',
                                 params : {
                                     id : record.data.id,
@@ -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(){
-                            Roo.select('.x-grid-row-selected').item(3).remove();
-                        }).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});
                         
                     }
                     
@@ -423,7 +424,7 @@ Pman.Tab.PersonList.prototype = {
 
                     
                     Roo.Ajax.request({
-                        url: baseURL + '/Roo/Person.html',
+                        url: baseURL + '/Roo/core_person',
                         method: 'GET',
                         params: {
                             _toggleActive : r.join(',')