FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CLOUDSTACK-8023: UI > VM wizard widget > when next button is clicked,… · kwanggithub/cloudstack@f00a628 · GitHub

This repository was archived by the owner on Jan 15, 2020. It is now read-only.
/ cloudstack Public archive
forked from apache/cloudstack

Commit f00a628

Browse files
Jessica Wang
committed
CLOUDSTACK-8023: UI > VM wizard widget > when next button is clicked, trigger event handler of event "cloudStack.module.instanceWizard.clickNextButton".
1 parent 2feef17 commit f00a628

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

‎ui/scripts/ui-custom/instanceWizard.js‎

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,15 +1086,21 @@
10861086

10871087
// Next button
10881088
if ($target.closest('div.button.next').size()) {
1089-
// Make sure ISO or template is selected
1090-
if ($activeStep.hasClass('select-iso') && !$activeStep.find('.content:visible input:checked').size()) {
1091-
cloudStack.dialog.notice({
1092-
message: 'message.step.1.continue'
1093-
});
1094-
return false;
1095-
}
1096-
1097-
//step 5 - select network
1089+
//step 2 - select template/ISO
1090+
if($activeStep.hasClass('select-iso')) {
1091+
if ($activeStep.find('.content:visible input:checked').size() == 0) {
1092+
cloudStack.dialog.notice({
1093+
message: 'message.step.1.continue'
1094+
});
1095+
return false;
1096+
}
1097+
$(window).trigger("cloudStack.module.instanceWizard.clickNextButton", {
1098+
$form: $form,
1099+
currentStep: 2
1100+
});
1101+
}
1102+
1103+
//step 6 - select network
10981104
if ($activeStep.find('.wizard-step-conditional.select-network:visible').size() > 0) {
10991105
var data = $activeStep.data('my-networks');
11001106

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL