Pman.Tab.AdminLogEvents.bjs
authorEdward <edward@roojs.com>
Tue, 14 Jul 2015 07:02:45 +0000 (15:02 +0800)
committerEdward <edward@roojs.com>
Tue, 14 Jul 2015 07:02:45 +0000 (15:02 +0800)
Pman.Tab.AdminLogEvents.js

Pman.Tab.AdminLogEvents.bjs
Pman.Tab.AdminLogEvents.js

index 5574361..728bba6 100644 (file)
             },
             {
              "listeners" : {
-              "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelected();\n    \n    if(!s || s.data.id * 1 < 1 || s.data.action != 'DELETE'){\n        Roo.MessageBox.alert('Error', 'Please select a deleted person');\n        return;\n    }\n    \n    \n}\n"
+              "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelected();\n    \n    if(!s || s.data.id * 1 < 1 || s.data.action != 'DELETE'){\n        Roo.MessageBox.alert('Error', 'Please select a deleted person');\n        return;\n    }\n    \n    new Pman.Request({\n       url: baseURL + '/Roo/Events',\n       method : 'POST',\n       mask : 'Sending...',\n       params : {\n           _restore : s.data.id\n       },\n       success : function(ret) {\n        \n       }\n   });\n}\n"
              },
              "text" : "Restore",
              "xtype" : "Button",
index 3eeda7b..e1202cb 100644 (file)
@@ -248,7 +248,17 @@ Pman.Tab.AdminLogEvents = new Roo.XComponent({
                     return;
                 }
                 
-                
+                new Pman.Request({
+                   url: baseURL + '/Roo/Events',
+                   method : 'POST',
+                   mask : 'Sending...',
+                   params : {
+                       _restore : s.data.id
+                   },
+                   success : function(ret) {
+                    
+                   }
+               });
             }
           }
          }