bug 13575: deployVM wizard - step 4 - select network - pop up a warning message if no network is selected when Next button is clicked.

This commit is contained in:
Jessica Wang 2012-02-10 15:43:13 -08:00
parent 7b6e98b20e
commit ca83ac7749
1 changed files with 9 additions and 0 deletions

View File

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