mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
physical resource page - add cluster - validate zone field and pod field.
This commit is contained in:
parent
b97c6a6ed2
commit
977773701a
@ -673,7 +673,9 @@ function initAddClusterShortcut() {
|
||||
if(hypervisor == "VmWare")
|
||||
clusterType = $thisDialog.find("#type_dropdown").val();
|
||||
|
||||
var isValid = true;
|
||||
var isValid = true;
|
||||
isValid &= validateDropDownBox("Zone", $thisDialog.find("#zone_dropdown"), $thisDialog.find("#zone_dropdown_errormsg"));
|
||||
isValid &= validateDropDownBox("Pod", $thisDialog.find("#pod_dropdown"), $thisDialog.find("#pod_dropdown_errormsg"));
|
||||
if(hypervisor == "VmWare" && clusterType != "CloudManaged") {
|
||||
isValid &= validateString("vCenter Server", $thisDialog.find("#cluster_hostname"), $thisDialog.find("#cluster_hostname_errormsg"));
|
||||
isValid &= validateString("vCenter user", $thisDialog.find("#cluster_username"), $thisDialog.find("#cluster_username_errormsg"));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user