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');
}
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',