cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [2/2] git commit: updated refs/heads/ui-vpc-redesign to c6c8538
Date Tue, 21 May 2013 22:09:37 GMT
VPC: Use listView selector for assignVm action


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c6c85387
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c6c85387
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c6c85387

Branch: refs/heads/ui-vpc-redesign
Commit: c6c85387fb69beec39357b7a4f217db4df8bd443
Parents: dfa93b5
Author: Brian Federle <bfederle@gmail.com>
Authored: Tue May 21 15:09:30 2013 -0700
Committer: Brian Federle <bfederle@gmail.com>
Committed: Tue May 21 15:09:30 2013 -0700

----------------------------------------------------------------------
 ui/css/cloudstack3.css |    6 ++++--
 ui/scripts/vpc.js      |   21 ++++++++++++++++++---
 2 files changed, 22 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c6c85387/ui/css/cloudstack3.css
----------------------------------------------------------------------
diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css
index 1658453..da64787 100644
--- a/ui/css/cloudstack3.css
+++ b/ui/css/cloudstack3.css
@@ -11871,12 +11871,14 @@ div.ui-dialog div.autoscaler div.field-group div.form-container
form div.form-it
 }
 
 .add .icon,
-.addNew .icon {
+.addNew .icon,
+.assignVm .icon {
   background-position: -37px -61px;
 }
 
 .add:hover .icon,
-.addNew:hover .icon {
+.addNew:hover .icon,
+.assignVm:hover .icon {
   background-position: -37px -643px;
 }
 

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c6c85387/ui/scripts/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js
index 7778a2d..50fa5db 100644
--- a/ui/scripts/vpc.js
+++ b/ui/scripts/vpc.js
@@ -437,9 +437,24 @@
               detailView: {
                 name: 'Internal Lb details',
                 actions: {
-                  //assignVm: { 
-                    
-                  //}
+                  assignVm: { 
+                    label: 'Assign VMs to LB',
+                    messages: {
+                      notification: function(args) { return 'Assign VM to internal LB rule';
}
+                    },
+                    listView: $.extend(true, {}, cloudStack.sections.instances.listView,
{
+                      type: 'checkbox',
+                      filters: false
+                    }),
+                    action: function(args) {
+                      args.response.success();
+                    },
+                    notification: {
+                      poll: function(args) {
+                        args.complete();
+                      }
+                    }
+                  }
                 },                
                 tabs: {
                   details: {


Mime
View raw message