Pman.Tab.PersonList.js
[Pman.Core] / Pman.Tab.PersonList.js
index 6a716df..316c6be 100644 (file)
@@ -256,14 +256,14 @@ Pman.Tab.PersonList.prototype = {
                         
                     },
                     cellclick : function (_self, rowIndex, columnIndex, e)
-                    {
+                    {   console.log(_this.grid.ds.getAt(rowIndex));
                         var di = this.colModel.getDataIndex(columnIndex);
                         if (di != 'active') {
                             return;
                         }
-                         
-                        var rec = _this.grid.ds.getAt(rowIndex);
                         
+                        var rec = _this.grid.ds.getAt(rowIndex);
+                        console.log(rec); 
                         rec.set('active', rec.data.active ? 0 : 1);
                         rec.commit();
 
@@ -456,7 +456,38 @@ Pman.Tab.PersonList.prototype = {
                 icon: rootURL + '/Pman/templates/images/trash.gif',
                 handler : function(){
                     //Pman.genericDelete(_this, 'Person'); 
-                    console.log('hi');
+                    
+
+                   
+                        
+                   
+                    /*if (!ids.length) {
+                        Roo.MessageBox.alert("Error", "Select rows by clicking on the Internal# column");
+                        return;
+                    }
+
+                    Roo.MessageBox.confirm(
+                        "Confirm", 
+                        "Confirm Deletion of selected rows (some rows can not be deleted if they are referenced elsewhere", 
+                        function(res) {
+                            if(res != 'yes') {
+                                return;
+                            }
+                            new Pman.Request({
+                                method : 'POST',
+                                url : baseURL + '/Roo/core_person',
+                                params : {
+                                    _delete  : ids.join(',')
+                                },
+                                success : function() {
+                                    _this.grid.footer.onClick('refresh');
+                                }
+                            });
+                        }
+                    );*/
+
+
+                    
 
                 }
             } ,