cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahu...@apache.org
Subject [22/50] [abbrv] git commit: updated refs/heads/vmsync to aaa16af
Date Mon, 10 Jun 2013 00:54:11 GMT
CLOUDSTACK-2880: UI - zone detail - add VMware DC action - replace URL field with vcenter field
and make vcenter required.


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

Branch: refs/heads/vmsync
Commit: 36ed93f8abd21e585e73d2070faca48b3cf52cfb
Parents: 6202563
Author: Jessica Wang <jessicawang@apache.org>
Authored: Thu Jun 6 11:39:05 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Thu Jun 6 11:39:05 2013 -0700

----------------------------------------------------------------------
 ui/scripts/system.js | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/36ed93f8/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index c1eef69..e3d7b41 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -5388,9 +5388,9 @@
                           label: 'label.name',
                           validation: { required: true }
                         },
-                        url: { 
-                          label: 'label.url',
-                          validation: { required: false }
+                        vcenter: { 
+                          label: 'vcenter',
+                          validation: { required: true }
                         },
                         username: {
                           label: 'label.username',
@@ -5406,14 +5406,10 @@
                     action: function(args) {
                       var data = {
                         zoneid: args.context.physicalResources[0].id,
-                        name: args.data.name
-                      };
+                        name: args.data.name,
+                        vcenter: args.data.vcenter 
+                      };                                          
                       
-                      if(args.data.url != null && args.data.url.length > 0) {
-                        $.extend(data, {
-                          url: args.data.url 
-                        })
-                      }
                       if(args.data.username != null && args.data.username.length
> 0) {
                         $.extend(data, {
                           username: args.data.username 


Mime
View raw message