CLOUDSTACK-5359: UI > Infrastructure > Clusters > Add Cluster > Public Traffic vSwitch Type field, Guest Traffic vSwitch Type field > do not pass the value of the form field to API call when the the form field is not displaying.

This commit is contained in:
Jessica Wang 2014-10-08 16:01:57 -07:00
parent d3af2de730
commit 59e1e9bbd5
1 changed files with 12 additions and 11 deletions

View File

@ -14179,19 +14179,20 @@
array1.push("&password=" + todb(args.data.vCenterPassword));
//vSwitch Public Type
if (args.data.vSwitchPublicType != "")
array1.push("&publicvswitchtype=" + args.data.vSwitchPublicType);
if (args.data.vSwitchPublicName != "")
array1.push("&publicvswitchname=" + args.data.vSwitchPublicName);
if (args.$form.find('.form-item[rel=vSwitchPublicType]').css('display') != 'none' && args.data.vSwitchPublicType != "") {
array1.push("&publicvswitchtype=" + args.data.vSwitchPublicType);
}
if (args.$form.find('.form-item[rel=vSwitchPublicName]').css('display') != 'none' && args.data.vSwitchPublicName != "") {
array1.push("&publicvswitchname=" + args.data.vSwitchPublicName);
}
//vSwitch Guest Type
if (args.data.vSwitchGuestType != "")
array1.push("&guestvswitchtype=" + args.data.vSwitchGuestType);
if (args.data.vSwitchGuestName != "")
array1.push("&guestvswitchname=" + args.data.vSwitchGuestName);
if (args.$form.find('.form-item[rel=vSwitchGuestType]').css('display') != 'none' && args.data.vSwitchGuestType != "") {
array1.push("&guestvswitchtype=" + args.data.vSwitchGuestType);
}
if (args.$form.find('.form-item[rel=vSwitchGuestName]').css('display') != 'none' && args.data.vSwitchGuestName != "") {
array1.push("&guestvswitchname=" + args.data.vSwitchGuestName);
}
//Nexus VSM fields
if (args.$form.find('.form-item[rel=vsmipaddress]').css('display') != 'none' && args.data.vsmipaddress != null && args.data.vsmipaddress.length > 0) {