Skip to content

Commit ca83ac7

Browse files
author
Jessica Wang
committed
bug 13575: deployVM wizard - step 4 - select network - pop up a warning message if no network is selected when Next button is clicked.
1 parent 7b6e98b commit ca83ac7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ui/scripts/ui-custom/instanceWizard.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,15 @@
614614
cloudStack.dialog.notice({ message: 'message.step.1.continue' });
615615
return false;
616616
}
617+
618+
//step 5 - select network
619+
if($activeStep.find('.wizard-step-conditional.select-network:visible').size() > 0) {
620+
if($activeStep.find('input[type=checkbox]:checked').size() == 0) { //if no checkbox is checked
621+
cloudStack.dialog.notice({ message: 'message.step.4.continue' });
622+
return false;
623+
}
624+
}
625+
617626
if (!$form.valid()) {
618627
if ($form.find('input.error:visible, select.error:visible').size()) {
619628
return false;

0 commit comments

Comments
 (0)