Pman.Tab.CoreOAuthClient.bjs
authorEdward <edward@roojs.com>
Tue, 5 Aug 2014 07:02:21 +0000 (15:02 +0800)
committerEdward <edward@roojs.com>
Tue, 5 Aug 2014 07:02:21 +0000 (15:02 +0800)
Pman.Tab.CoreOAuthClient.js

Pman.Tab.CoreOAuthClient.bjs
Pman.Tab.CoreOAuthClient.js

index 170d0a3..d39efd6 100644 (file)
@@ -94,7 +94,7 @@
                                                 },
                                                 {
                                                     "listeners": {
-                                                        "|click": "function ()\n{   \n    var cs = _this.grid.getSelectionModel().getSelectedCell();\n    if (!cs) {\n        Roo.MessageBox.alert(\"Error\", \"Select a cell\");\n        return;\n    }\n    _this.grid.stopEditing();\n \n    var r = _this.grid.ds.getAt(cs[0]);\n    \n    Roo.MessageBox.confirm(\"Confirm\", \"Are sure you want to delete this client?\", function (v){\n        if (v != 'yes') {\n            return;\n        }\n        \n        new Pman.Request({\n            url : baseURL + '/Roo/Core_oauth_clients',\n            method : 'POST',\n            params : {\n                _delete : r.data.id\n            },\n            success : function(res) {\n                _this.grid.footer.onClick('refresh');\n            }\n        });\n    });\n}"
+                                                        "|click": "function ()\n{   \n    var cs = _this.grid.getSelectionModel().getSelectedCell();\n    if (!cs) {\n        Roo.MessageBox.alert(\"Error\", \"Select a cell\");\n        return;\n    }\n    _this.grid.stopEditing();\n \n    var r = _this.grid.ds.getAt(cs[0]);\n    \n    Roo.MessageBox.confirm(\"Confirm\", \"Are you sure you want to delete this client?\", function (v){\n        if (v != 'yes') {\n            return;\n        }\n        \n        new Pman.Request({\n            url : baseURL + '/Roo/Core_oauth_clients',\n            method : 'POST',\n            params : {\n                _delete : r.data.id\n            },\n            success : function(res) {\n                _this.grid.footer.onClick('refresh');\n            }\n        });\n    });\n}"
                                                     },
                                                     "cls": "x-btn-text-icon",
                                                     "text": "Remove",
index 1290a51..92d36bc 100644 (file)
@@ -175,7 +175,7 @@ Pman.Tab.CoreOAuthClient = new Roo.XComponent({
                                              
                                                 var r = _this.grid.ds.getAt(cs[0]);
                                                 
-                                                Roo.MessageBox.confirm("Confirm", "Are sure you want to delete this client?", function (v){
+                                                Roo.MessageBox.confirm("Confirm", "Are you sure you want to delete this client?", function (v){
                                                     if (v != 'yes') {
                                                         return;
                                                     }