You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ml...@apache.org on 2013/01/26 06:25:09 UTC
[47/50] git commit: Instance wizard: Fix back button state
Instance wizard: Fix back button state
Fix case where select SG step is shown on back, instead of select guest network.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/8f11f631
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8f11f631
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8f11f631
Branch: refs/heads/add_remove_nics
Commit: 8f11f631a4f1b288dc319aefa2c974a832e212d4
Parents: 0ab39fd
Author: Brian Federle <br...@citrix.com>
Authored: Thu Jan 24 16:11:47 2013 -0800
Committer: Brian Federle <br...@citrix.com>
Committed: Fri Jan 25 08:58:07 2013 -0800
----------------------------------------------------------------------
ui/scripts/ui-custom/instanceWizard.js | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8f11f631/ui/scripts/ui-custom/instanceWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js
index 67d2a69..6e99384 100644
--- a/ui/scripts/ui-custom/instanceWizard.js
+++ b/ui/scripts/ui-custom/instanceWizard.js
@@ -860,8 +860,19 @@
// Previous button
if ($target.closest('div.button.previous').size()) {
- var index = $steps.filter(':visible').index();
- if (index) showStep(index);
+ var $step = $steps.filter(':visible');
+ var $networkStep = $steps.filter('.network');
+ var index = $step.index();
+
+ $networkStep.removeClass('next-use-security-groups');
+
+ if (index) {
+ if (index == $steps.size() - 1 && $networkStep.hasClass('next-use-security-groups')) {
+ showStep(5);
+ } else {
+ showStep(index);
+ }
+ }
return false;
}