cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pran...@apache.org
Subject git commit: updated refs/heads/ui-vpc-redesign to e5e41b0
Date Tue, 21 May 2013 11:18:24 GMT
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 <pranav.saxena@citrix.com>
Authored: Tue May 21 16:35:14 2013 +0530
Committer: Pranav Saxena <pranav.saxena@citrix.com>
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: {


Mime
View raw message