mirror of https://github.com/apache/cloudstack.git
bug 10024: CloudStack UI - fix a bug that adding a pod from the resource page page didn't work.
This commit is contained in:
parent
30be8a7af9
commit
ff828e5bfb
|
|
@ -484,10 +484,14 @@ function initAddPodShortcut() {
|
|||
isValid &= validateIp("Start IP Range", $thisDialog.find("#add_pod_startip"), $thisDialog.find("#add_pod_startip_errormsg")); //required
|
||||
isValid &= validateIp("End IP Range", $thisDialog.find("#add_pod_endip"), $thisDialog.find("#add_pod_endip_errormsg"), true); //optional
|
||||
isValid &= validateIp("Gateway", $thisDialog.find("#add_pod_gateway"), $thisDialog.find("#add_pod_gateway_errormsg")); //required when creating
|
||||
|
||||
if($thisDialog.find("#guestip_container").css("display") != "none")
|
||||
isValid &= addZoneWizardValidateDirectVLAN($thisDialog);
|
||||
|
||||
|
||||
if($thisDialog.find("#guestip_container").css("display") != "none") {
|
||||
isValid &= validateIp("Guest IP Range", $thisDialog.find("#startguestip"), $thisDialog.find("#startguestip_errormsg")); //required
|
||||
isValid &= validateIp("Guest IP Range", $thisDialog.find("#endguestip"), $thisDialog.find("#endguestip_errormsg"), true); //optional
|
||||
isValid &= validateIp("Guest Netmask", $thisDialog.find("#guestnetmask"), $thisDialog.find("#guestnetmask_errormsg")); //required when creating
|
||||
isValid &= validateIp("Guest Gateway", $thisDialog.find("#guestgateway"), $thisDialog.find("#guestgateway_errormsg"));
|
||||
}
|
||||
|
||||
if (!isValid)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue