mirror of https://github.com/apache/cloudstack.git
bug 12457
Select first network item as default, if unchecking current default network. statis 12457: resolved fixed
This commit is contained in:
parent
bf67097b21
commit
bfad199a2e
|
|
@ -84,7 +84,14 @@
|
|||
var $radio = $(this).closest('.select').find('input[type=radio]');
|
||||
|
||||
if ($radio.is(':checked') && !$(this).is(':checked')) {
|
||||
return false;
|
||||
if (!$radio.closest('.select').index()) {
|
||||
return false;
|
||||
} else {
|
||||
$radio
|
||||
.closest('.select')
|
||||
.siblings().filter(':first')
|
||||
.find('input[type=radio]').click();
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue