incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kis...@apache.org
Subject [4/36] git commit: Instance wizard: Fix back button state
Date Tue, 29 Jan 2013 06:24:38 GMT
 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/regions
Commit: 8f11f631a4f1b288dc319aefa2c974a832e212d4
Parents: 0ab39fd
Author: Brian Federle <brian.federle@citrix.com>
Authored: Thu Jan 24 16:11:47 2013 -0800
Committer: Brian Federle <brian.federle@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;
           }


Mime
View raw message