From 1bd532d13bff59bf555a24d539abf4105fc78bf4 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 07fc78cf054..ff604732b13 100644 --- a/ui/scripts/ui-custom/instanceWizard.js +++ b/ui/scripts/ui-custom/instanceWizard.js @@ -104,7 +104,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();