Updated Branches: refs/heads/ui-vpc-redesign 933060dfe -> e5e41b0f4
Remove ACL List action item Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e5e41b0f Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e5e41b0f Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e5e41b0f Branch: refs/heads/ui-vpc-redesign Commit: e5e41b0f454059511ea97a534331db7213bef67e Parents: 933060d Author: Pranav Saxena <[email protected]> Authored: Tue May 21 16:35:14 2013 +0530 Committer: Pranav Saxena <[email protected]> Committed: Tue May 21 16:35:14 2013 +0530 ---------------------------------------------------------------------- ui/scripts/vpc.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e5e41b0f/ui/scripts/vpc.js ---------------------------------------------------------------------- diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index 710265c..2c95420 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -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: {
