bug 12457

Select first network item as default, if unchecking current default
network.

statis 12457: resolved fixed
This commit is contained in:
Brian Federle 2011-12-12 10:21:22 -08:00
parent bf67097b21
commit bfad199a2e
1 changed files with 8 additions and 1 deletions

View File

@ -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;