From bfad199a2e88a63a08b7446b1e7a44930beb7cca Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Mon, 12 Dec 2011 10:21:22 -0800 Subject: [PATCH] bug 12457 Select first network item as default, if unchecking current default network. statis 12457: resolved fixed --- ui/scripts/ui-custom/instanceWizard.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js index bc6523e97a3..c5c6491a8be 100644 --- a/ui/scripts/ui-custom/instanceWizard.js +++ b/ui/scripts/ui-custom/instanceWizard.js @@ -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;