Pman.Tab.AdminLogEvents.bjs
authorEdward <edward@roojs.com>
Tue, 14 Jul 2015 08:30:33 +0000 (16:30 +0800)
committerEdward <edward@roojs.com>
Tue, 14 Jul 2015 08:30:33 +0000 (16:30 +0800)
Pman.Tab.AdminLogEvents.js

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

index dad03d6..93a305f 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    new Pman.Request({\n       url: baseURL + '/Roo/Events',\n       method : 'POST',\n       mask : 'Sending...',\n       params : {\n           id : s.data.id,\n           _restore : 1\n       },\n       success : function(ret) {\n            _this.grid.footer.onClick('refresh');\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           id : s.data.id,\n           _restore : 1\n       },\n       success : function(ret) {\n            _this.grid.footer.onClick('refresh');\n            Roo.MessageBox.alert('Notice', 'Restored');\n       }\n   });\n}\n"
              },
              "text" : "Restore",
              "xtype" : "Button",
index 8430c90..8c2688c 100644 (file)
@@ -258,6 +258,7 @@ Pman.Tab.AdminLogEvents = new Roo.XComponent({
                    },
                    success : function(ret) {
                         _this.grid.footer.onClick('refresh');
+                        Roo.MessageBox.alert('Notice', 'Restored');
                    }
                });
             }