CS-16085: Fix networks checkboxes

When both VPC and isolated networks are present, fix case where
unchecking first isolated networks triggers checkbox for VPC tier
network, thus making it appear as if no network is selected.

reviewed-by: jessica
This commit is contained in:
Brian Federle 2012-08-20 14:57:08 -07:00
parent 5c924feba3
commit 7d934d1039
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@
var $radio = $(this).closest('.select').find('input[type=radio]');
if ($(this).attr('type') == 'checkbox') {
if ($(this).closest('.select-container').hasClass('single-select')) {
if ($(this).closest('.select-container').hasClass('single-select') ||
!$(this).closest('.select').siblings().filter(':visible').size()) {
$(this).closest('.select').siblings().find('input[type=checkbox]')
.attr('checked', false);
$(this).closest('.select').find('input[type=radio]').click();