From: Edward Date: Tue, 14 Jul 2015 08:43:35 +0000 (+0800) Subject: Pman.Tab.AdminLogEvents.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=86fe0fa178efa200f369e1164f321eea8ae67960 Pman.Tab.AdminLogEvents.bjs Pman.Tab.AdminLogEvents.js --- diff --git a/Pman.Tab.AdminLogEvents.bjs b/Pman.Tab.AdminLogEvents.bjs index 16f1dcf..652e5d0 100644 --- a/Pman.Tab.AdminLogEvents.bjs +++ b/Pman.Tab.AdminLogEvents.bjs @@ -153,7 +153,7 @@ }, { "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 Roo.MessageBox.alert('Notice', 'Restored ');\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 person successfully');\n }\n });\n}\n" }, "text" : "Restore", "xtype" : "Button", diff --git a/Pman.Tab.AdminLogEvents.js b/Pman.Tab.AdminLogEvents.js index cec1b6f..df43b46 100644 --- a/Pman.Tab.AdminLogEvents.js +++ b/Pman.Tab.AdminLogEvents.js @@ -258,7 +258,7 @@ Pman.Tab.AdminLogEvents = new Roo.XComponent({ }, success : function(ret) { _this.grid.footer.onClick('refresh'); - Roo.MessageBox.alert('Notice', 'Restored '); + Roo.MessageBox.alert('Notice', 'Restored person successfully'); } }); }