mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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:
parent
fcf9b57f08
commit
16250f8e4b
@ -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()) &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user