CLOUDSTACK-543: cloudstack UI - create network offering dialog - disable Redundant router capability checkbox, Conserve Mode checkbox (still visible, but can't be selected) when Guest Type is selected as Shared.

This commit is contained in:
Jessica Wang 2012-11-26 15:29:52 -08:00
parent c0d39ebbfe
commit e113556023
1 changed files with 9 additions and 9 deletions

View File

@ -1194,19 +1194,19 @@
return false; //break each loop
}
}
});
if(havingVpcVirtualRouterForAtLeastOneService == true) {
});
if(havingVpcVirtualRouterForAtLeastOneService == true || $guestTypeField.val() == 'Shared') {
$conservemode.find("input[type=checkbox]").attr("disabled", "disabled");
$conservemode.find("input[type=checkbox]").attr('checked', false);
$conservemode.find("input[type=checkbox]").attr('checked', false);
$serviceSourceNatRedundantRouterCapabilityCheckbox.find("input[type=checkbox]").attr("disabled", "disabled");
$serviceSourceNatRedundantRouterCapabilityCheckbox.find("input[type=checkbox]").attr('checked', false);
}
else {
$conservemode.find("input[type=checkbox]").removeAttr("disabled");
$serviceSourceNatRedundantRouterCapabilityCheckbox.find("input[type=checkbox]").removeAttr("disabled");
}
else {
$serviceSourceNatRedundantRouterCapabilityCheckbox.find("input[type=checkbox]").removeAttr("disabled");
$conservemode.find("input[type=checkbox]").removeAttr("disabled");
}
$(':ui-dialog').dialog('option', 'position', 'center');
//CS-16612 show all services regardless of guestIpType(Shared/Isolated)