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.
This commit is contained in:
Brian Federle 2013-03-25 11:37:15 -07:00
parent fcf9b57f08
commit 16250f8e4b

View File

@ -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()) &&