CLOUDSTACK-452: cloudstack UI - zone wizard - when Basic mode is selected, hide IPv6 DNS1, IPv6 DNS2 field.

This commit is contained in:
Jessica Wang 2013-03-26 16:48:50 -07:00
parent e806ff6743
commit 5df32e6d70
1 changed files with 7 additions and 2 deletions

View File

@ -322,7 +322,9 @@
if (args.data['network-model'] == 'Basic') {
args.$form.find('[rel=networkOfferingId]').show();
args.$form.find('[rel=guestcidraddress]').hide();
args.$form.find('[rel=guestcidraddress]').hide();
args.$form.find('[rel=ip6dns1]').hide();
args.$form.find('[rel=ip6dns2]').hide();
}
else { //args.data['network-model'] == 'Advanced'
args.$form.find('[rel=networkOfferingId]').hide();
@ -331,7 +333,10 @@
args.$form.find('[rel=guestcidraddress]').show();
else //args.data["zone-advanced-sg-enabled"] == "on
args.$form.find('[rel=guestcidraddress]').hide();
}
args.$form.find('[rel=ip6dns1]').show();
args.$form.find('[rel=ip6dns2]').show();
}
setTimeout(function() {
if ($form.find('input[name=ispublic]').is(':checked')) {