Remove ACL List action item

This commit is contained in:
Pranav Saxena 2013-05-21 16:35:14 +05:30
parent 933060dfeb
commit e5e41b0f45
1 changed files with 38 additions and 0 deletions

View File

@ -609,6 +609,44 @@
detailView: {
isMaximized: true,
actions:{
deleteacllist:{
label:'Delete ACL List',
messages: {
confirm: function(args) {
return 'Are you sure you want to delete this ACL list ?';
},
notification: function(args) {
return 'Delete ACL list';
}
},
action:function(args){
$.ajax({
url:createURL('deleteNetworkACLList&id=' + args.context.aclLists[0].id),
success:function(json){
var jid = json.deletenetworkacllistresponse.jobid;
args.response.success(
{_custom:
{ jobId: jid
}
}
);
},
error:function(json){
args.response.error(parseXMLHttpResponse(json));
}
});
},
notification: {
poll: pollAsyncJobResult
}
}
},
tabs: {
details: {