cloudstack 3.0 UI - VPN Customer Gateway - implement Delete VPN Customer Gateway action.

This commit is contained in:
Jessica Wang 2012-07-19 16:45:35 -07:00
parent 343a587cfd
commit 56bbb6c5ae
1 changed files with 36 additions and 0 deletions

View File

@ -3895,6 +3895,42 @@
detailView: {
name: 'label.details',
actions: {
remove: {
label: 'delete VPN Customer Gateway',
messages: {
confirm: function(args) {
return 'Please confirm that you want to delete this VPN Customer Gateway';
},
notification: function(args) {
return 'delete VPN Customer Gateway';
}
},
action: function(args) {
$.ajax({
url: createURL("deleteVpnCustomerGateway"),
data: {
id: args.context.vpnCustomerGateway[0].id
},
success: function(json) {
var jid = json.deletecustomergatewayresponse.jobid;
args.response.success(
{_custom:
{
jobId: jid
}
}
);
}
});
},
notification: {
poll: pollAsyncJobResult
}
}
},
tabs: {
details: {
title: 'label.details',