diff --git a/ui/jsp/pod.jsp b/ui/jsp/pod.jsp index f50aaa9bd4a..922277dd049 100644 --- a/ui/jsp/pod.jsp +++ b/ui/jsp/pod.jsp @@ -377,6 +377,8 @@ dictionary = { + +
  • diff --git a/ui/jsp/resource.jsp b/ui/jsp/resource.jsp index 3c8fd5a6160..59aed53b0d2 100644 --- a/ui/jsp/resource.jsp +++ b/ui/jsp/resource.jsp @@ -760,6 +760,9 @@
  • + + +
  • diff --git a/ui/jsp/zone.jsp b/ui/jsp/zone.jsp index 1945ecb54ff..fb8628c0b7f 100644 --- a/ui/jsp/zone.jsp +++ b/ui/jsp/zone.jsp @@ -463,6 +463,8 @@ dictionary = { -->
  • + +
  • diff --git a/ui/scripts/cloud.core.pod.js b/ui/scripts/cloud.core.pod.js index ff2a16980ed..9e3d3aff787 100644 --- a/ui/scripts/cloud.core.pod.js +++ b/ui/scripts/cloud.core.pod.js @@ -324,13 +324,18 @@ function bindAddClusterButton($leftmenuItem1) { dialogAddCluster.find("#cluster_hypervisor").change(function() { if($(this).val() == "VMware") { $('li[input_group="vmware"]', dialogAddCluster).show(); - dialogAddCluster.find("#type_dropdown").change(); + + $('li[input_sub_group="external"]', dialogAddCluster).show(); + $("#cluster_name_label", dialogAddCluster).text("vCenter Cluster:"); + + // dialogAddCluster.find("#type_dropdown").change(); } else { $('li[input_group="vmware"]', dialogAddCluster).hide(); $("#cluster_name_label", dialogAddCluster).text("Cluster:"); } }).change(); - + +/* dialogAddCluster.find("#type_dropdown").change(function() { if($(this).val() == "ExternalManaged") { $('li[input_sub_group="external"]', dialogAddCluster).show(); @@ -340,6 +345,7 @@ function bindAddClusterButton($leftmenuItem1) { $("#cluster_name_label", dialogAddCluster).text("Cluster:"); } }); +*/ dialogAddCluster.dialog('option', 'buttons', { "Add": function() { @@ -348,9 +354,11 @@ function bindAddClusterButton($leftmenuItem1) { var hypervisor = $thisDialog.find("#cluster_hypervisor").val(); var clusterType="CloudManaged"; - if(hypervisor == "VMware") - clusterType = $thisDialog.find("#type_dropdown").val(); - + if(hypervisor == "VMware") { + // clusterType = $thisDialog.find("#type_dropdown").val(); + clusterType="ExternalManaged"; + } + // validate values var isValid = true; if(hypervisor == "VMware" && clusterType != "CloudManaged") { diff --git a/ui/scripts/cloud.core.resource.js b/ui/scripts/cloud.core.resource.js index 04f92c603ff..c85f9a00a61 100644 --- a/ui/scripts/cloud.core.resource.js +++ b/ui/scripts/cloud.core.resource.js @@ -668,13 +668,16 @@ function initAddClusterShortcut() { $hypervisorDropdown.change(function() { if($(this).val() == "VMware") { $('li[input_group="vmware"]', $dialogAddCluster).show(); - $dialogAddCluster.find("#type_dropdown").change(); + // $dialogAddCluster.find("#type_dropdown").change(); + $('li[input_sub_group="external"]', $dialogAddCluster).show(); + $("#cluster_name_label", $dialogAddCluster).text("vCenter Cluster:"); } else { $('li[input_group="vmware"]', $dialogAddCluster).hide(); $("#cluster_name_label", $dialogAddCluster).text("Cluster:"); } }); +/* $dialogAddCluster.find("#type_dropdown").change(function() { if($(this).val() == "ExternalManaged") { $('li[input_sub_group="external"]', $dialogAddCluster).show(); @@ -684,6 +687,7 @@ function initAddClusterShortcut() { $("#cluster_name_label", $dialogAddCluster).text("Cluster:"); } }); +*/ $("#add_cluster_shortcut").unbind("click").bind("click", function(event) { $dialogAddCluster.find("#info_container").hide(); @@ -699,8 +703,10 @@ function initAddClusterShortcut() { // validate values var hypervisor = $thisDialog.find("#cluster_hypervisor").val(); var clusterType="CloudManaged"; - if(hypervisor == "VMware") - clusterType = $thisDialog.find("#type_dropdown").val(); + if(hypervisor == "VMware") { + // clusterType = $thisDialog.find("#type_dropdown").val(); + clusterType = "ExternalManaged"; + } var isValid = true; isValid &= validateDropDownBox("Zone", $thisDialog.find("#zone_dropdown"), $thisDialog.find("#zone_dropdown_errormsg")); diff --git a/ui/scripts/cloud.core.zone.js b/ui/scripts/cloud.core.zone.js index 6cd04401940..401d5841b1f 100644 --- a/ui/scripts/cloud.core.zone.js +++ b/ui/scripts/cloud.core.zone.js @@ -537,13 +537,16 @@ function bindAddClusterButtonOnZonePage($button, zoneId, zoneName) { $dialogAddCluster.find("#cluster_hypervisor").change(function() { if($(this).val() == "VMware") { $('li[input_group="vmware"]', $dialogAddCluster).show(); - $dialogAddCluster.find("#type_dropdown").change(); + // $dialogAddCluster.find("#type_dropdown").change(); + $('li[input_sub_group="external"]', $dialogAddCluster).show(); + $("#cluster_name_label", $dialogAddCluster).text("vCenter Cluster:"); } else { $('li[input_group="vmware"]', $dialogAddCluster).hide(); $("#cluster_name_label", $dialogAddCluster).text("Cluster:"); } }).change(); - + +/* $dialogAddCluster.find("#type_dropdown").change(function() { if($(this).val() == "ExternalManaged") { $('li[input_sub_group="external"]', $dialogAddCluster).show(); @@ -553,7 +556,7 @@ function bindAddClusterButtonOnZonePage($button, zoneId, zoneName) { $("#cluster_name_label", $dialogAddCluster).text("Cluster:"); } }); - +*/ $dialogAddCluster.dialog('option', 'buttons', { "Add": function() { var $thisDialog = $(this); @@ -562,9 +565,11 @@ function bindAddClusterButtonOnZonePage($button, zoneId, zoneName) { // validate values var hypervisor = $thisDialog.find("#cluster_hypervisor").val(); var clusterType="CloudManaged"; - if(hypervisor == "VMware") - clusterType = $thisDialog.find("#type_dropdown").val(); - + if(hypervisor == "VMware") { + // clusterType = $thisDialog.find("#type_dropdown").val(); + clusterType="ExternalManaged"; + } + var isValid = true; isValid &= validateDropDownBox("Pod", $thisDialog.find("#pod_dropdown"), $thisDialog.find("#pod_dropdown_errormsg")); if(hypervisor == "VMware" && clusterType != "CloudManaged") {