You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2014/12/10 01:26:58 UTC
git commit: updated refs/heads/master to f00a628
Repository: cloudstack
Updated Branches:
refs/heads/master 2feef1722 -> f00a62879
CLOUDSTACK-8023: UI > VM wizard widget > when next button is clicked, trigger event handler of event "cloudStack.module.instanceWizard.clickNextButton".
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f00a6287
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f00a6287
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f00a6287
Branch: refs/heads/master
Commit: f00a62879bd029c39802c7bc7814badff1a4cc38
Parents: 2feef17
Author: Jessica Wang <je...@apache.org>
Authored: Tue Dec 9 16:25:54 2014 -0800
Committer: Jessica Wang <je...@apache.org>
Committed: Tue Dec 9 16:25:54 2014 -0800
----------------------------------------------------------------------
ui/scripts/ui-custom/instanceWizard.js | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f00a6287/ui/scripts/ui-custom/instanceWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js
index e8f0c45..e8b0f39 100644
--- a/ui/scripts/ui-custom/instanceWizard.js
+++ b/ui/scripts/ui-custom/instanceWizard.js
@@ -1086,15 +1086,21 @@
// Next button
if ($target.closest('div.button.next').size()) {
- // Make sure ISO or template is selected
- if ($activeStep.hasClass('select-iso') && !$activeStep.find('.content:visible input:checked').size()) {
- cloudStack.dialog.notice({
- message: 'message.step.1.continue'
- });
- return false;
- }
-
- //step 5 - select network
+ //step 2 - select template/ISO
+ if($activeStep.hasClass('select-iso')) {
+ if ($activeStep.find('.content:visible input:checked').size() == 0) {
+ cloudStack.dialog.notice({
+ message: 'message.step.1.continue'
+ });
+ return false;
+ }
+ $(window).trigger("cloudStack.module.instanceWizard.clickNextButton", {
+ $form: $form,
+ currentStep: 2
+ });
+ }
+
+ //step 6 - select network
if ($activeStep.find('.wizard-step-conditional.select-network:visible').size() > 0) {
var data = $activeStep.data('my-networks');