From 16250f8e4b485d86d0945017580af898c48f6c64 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Mon, 25 Mar 2013 11:37:15 -0700 Subject: [PATCH] Instance wizard: Fix checkbox selection Fix where VPC network is uncheckable if only VPC networks are present, and 'add network' form is visible and checked. --- ui/scripts/ui-custom/instanceWizard.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js index b55df79e7be..2c6d9f1886e 100644 --- a/ui/scripts/ui-custom/instanceWizard.js +++ b/ui/scripts/ui-custom/instanceWizard.js @@ -118,8 +118,12 @@ if (isSingleSelect) { $select.siblings('.single-select:visible').find('input[type=checkbox]') .attr('checked', false); - - $(this).closest('.select').find('input[type=radio]').click(); + + if (!$('input[name=new-network]:visible').is(':checked')) { + $(this).closest('.select').find('input[type=radio]').click(); + } else { + $newNetwork.find('input[type=radio]').click(); + } } if ((!$otherSelects.size()) &&