From ca83ac77495d8a73d7ef213dcb08d3657f126dee Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 10 Feb 2012 15:43:13 -0800 Subject: [PATCH] bug 13575: deployVM wizard - step 4 - select network - pop up a warning message if no network is selected when Next button is clicked. --- ui/scripts/ui-custom/instanceWizard.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js index 8571767d4c9..511a06a31ca 100644 --- a/ui/scripts/ui-custom/instanceWizard.js +++ b/ui/scripts/ui-custom/instanceWizard.js @@ -614,6 +614,15 @@ cloudStack.dialog.notice({ message: 'message.step.1.continue' }); return false; } + + //step 5 - select network + if($activeStep.find('.wizard-step-conditional.select-network:visible').size() > 0) { + if($activeStep.find('input[type=checkbox]:checked').size() == 0) { //if no checkbox is checked + cloudStack.dialog.notice({ message: 'message.step.4.continue' }); + return false; + } + } + if (!$form.valid()) { if ($form.find('input.error:visible, select.error:visible').size()) { return false;