DataObjects/Core_person_signup.php
[Pman.Core] / Pman.Tab.CoreOAuthClient.js
index 08758a9..92d36bc 100644 (file)
@@ -86,7 +86,12 @@ Pman.Tab.CoreOAuthClient = new Roo.XComponent({
                                         new Pman.Request({
                                             url : baseURL + '/Roo/Core_oauth_clients',
                                             method : 'POST',
-                                            params : record.data,
+                                            params : {
+                                                id : record.data.id,
+                                                client_id : record.data.client_id,
+                                                client_secret : record.data.client_secret,
+                                                redirect_uri : record.data.redirect_uri
+                                            },
                                             success : function(res) {
                                                 _this.grid.footer.onClick('refresh');
                                             }
@@ -170,17 +175,22 @@ Pman.Tab.CoreOAuthClient = new Roo.XComponent({
                                              
                                                 var r = _this.grid.ds.getAt(cs[0]);
                                                 
-                                                new Pman.Request({
-                                                    url : baseURL + '/Roo/Core_oauth_clients',
-                                                    method : 'POST',
-                                                    params : {
-                                                        _delete : r.data.id
-                                                    },
-                                                    success : function(res) {
-                                                        _this.grid.footer.onClick('refresh');
+                                                Roo.MessageBox.confirm("Confirm", "Are you sure you want to delete this client?", function (v){
+                                                    if (v != 'yes') {
+                                                        return;
                                                     }
+                                                    
+                                                    new Pman.Request({
+                                                        url : baseURL + '/Roo/Core_oauth_clients',
+                                                        method : 'POST',
+                                                        params : {
+                                                            _delete : r.data.id
+                                                        },
+                                                        success : function(res) {
+                                                            _this.grid.footer.onClick('refresh');
+                                                        }
+                                                    });
                                                 });
-                                               
                                             }
                                         },
                                         cls : 'x-btn-text-icon',