CS-15770:Dedicated option should not be displayed when Basic EIP/ELB is chosen as Network Offering

This commit is contained in:
Pranav Saxena 2012-07-31 16:38:33 +05:30
parent a8c6855229
commit c1b746a4f1
1 changed files with 11 additions and 1 deletions

View File

@ -545,7 +545,17 @@
},
basicPhysicalNetwork: { //"Netscaler" now
preFilter: cloudStack.preFilter.addLoadBalancerDevice,
preFilter: cloudStack.preFilter.addLoadBalancerDevice,
//Handling the hiding of "dedicated" option
preFilter: function(args) {
if (args.data['network-model'] == 'Basic' && (selectedNetworkOfferingHavingELB || selectedNetworkOfferingHavingEIP)) {
args.$form.find('[rel=dedicated]').hide();
} else {
args.$form.find('[rel=dedicated]').show();
};
cloudStack.preFilter.addLoadBalancerDevice
},
fields: {
ip: {
label: 'label.ip.address'