Pman.Tab.PersonList.js
authorbenny <benny@roojs.com>
Fri, 13 Jul 2018 08:02:04 +0000 (16:02 +0800)
committerbenny <benny@roojs.com>
Fri, 13 Jul 2018 08:02:04 +0000 (16:02 +0800)
Pman.Tab.PersonList.js

index 2435847..b448310 100644 (file)
@@ -456,10 +456,10 @@ Pman.Tab.PersonList.prototype = {
                 icon: rootURL + '/Pman/templates/images/trash.gif',
                 handler : function(){
                     //Pman.genericDelete(_this, 'Person'); 
-                    console.log(_this.grid.selModel.last);
-                    var rec = _this.grid.ds.getAt(rowIndex);
+                    
+                    var rec = _this.grid.ds.getAt(_this.grid.selModel.last);
 
-                   
+                    console.log(rec);
                         
                    
                     /*if (!ids.length) {