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.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/16250f8e Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/16250f8e Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/16250f8e Branch: refs/heads/scaleupvm Commit: 16250f8e4b485d86d0945017580af898c48f6c64 Parents: fcf9b57 Author: Brian Federle <[email protected]> Authored: Mon Mar 25 11:37:15 2013 -0700 Committer: Brian Federle <[email protected]> Committed: Mon Mar 25 11:37:15 2013 -0700 ---------------------------------------------------------------------- ui/scripts/ui-custom/instanceWizard.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/16250f8e/ui/scripts/ui-custom/instanceWizard.js ---------------------------------------------------------------------- diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js index b55df79..2c6d9f1 100644 --- a/ui/scripts/ui-custom/instanceWizard.js +++ b/ui/scripts/ui-custom/instanceWizard.js @@ -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()) &&
