mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-459:[Optional Public IP assignment for EIP with Basic Zone] Associate IP Checkbox in Create Network Offering Dialog is Displayed When Elastic LB is Selected
This commit is contained in:
parent
9547a2f86e
commit
4cb08a3d37
|
|
@ -1290,11 +1290,15 @@
|
|||
if((args.$form.find('.form-item[rel=\"service.Lb.isEnabled\"]').find('input[type=checkbox]').is(':checked') == true)
|
||||
&&(args.$form.find('.form-item[rel=\"service.Lb.provider\"]').find('select').val() == 'Netscaler')
|
||||
&&(args.$form.find('.form-item[rel=\"guestIpType\"]').find('select').val() == 'Shared')) {
|
||||
args.$form.find('.form-item[rel=\"service.Lb.elasticLbCheckbox\"]').css('display', 'inline-block');
|
||||
args.$form.find('.form-item[rel=\"service.Lb.elasticLbCheckbox\"]').css('display', 'inline-block');
|
||||
args.$form.find('.form-item[rel=\"associatePublicIP\"]').css('display', 'inline-block');
|
||||
}
|
||||
else {
|
||||
args.$form.find('.form-item[rel=\"service.Lb.elasticLbCheckbox\"]').hide();
|
||||
args.$form.find('.form-item[rel=\"service.Lb.elasticLbCheckbox\"]').find('input[type=checkbox]').attr('checked', false);
|
||||
args.$form.find('.form-item[rel=\"associatePublicIP\"]').hide();
|
||||
args.$form.find('.form-item[rel=\"service.Lb.elasticLbCheckbox\"]').find('input[type=checkbox]').attr('checked', false);
|
||||
args.$form.find('.form-item[rel=\"associatePublicIP\"]').find('input[type=checkbox]').attr('checked',false);
|
||||
|
||||
}
|
||||
|
||||
//show Elastic IP checkbox only when (1)StaticNat Service is checked (2)Service Provider is Netscaler (3)Guest IP Type is Shared
|
||||
|
|
@ -1564,7 +1568,7 @@
|
|||
label: 'Associate IP',
|
||||
isBoolean: true,
|
||||
isHidden: true,
|
||||
dependsOn: 'service.Lb.elasticLbCheckbox'
|
||||
// dependsOn: 'service.Lb.elasticLbCheckbox'
|
||||
},
|
||||
"service.Lb.lbIsolationDropdown": {
|
||||
label: 'label.LB.isolation',
|
||||
|
|
|
|||
Loading…
Reference in New Issue