From 7d934d1039349abbf30d0eea4fba06fc12fe53f4 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Mon, 20 Aug 2012 14:57:08 -0700 Subject: [PATCH] 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 --- ui/scripts/ui-custom/instanceWizard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js index a06d5a08598..fe5ee3d03c1 100644 --- a/ui/scripts/ui-custom/instanceWizard.js +++ b/ui/scripts/ui-custom/instanceWizard.js @@ -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();