cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [03/15] git commit: updated refs/heads/rbd-snap-clone to 75c272d
Date Fri, 24 May 2013 10:09:49 GMT
Install wizard UI: Add preinstall hook

For fresh install, adds hook to install wizard UI to show a custom
'step' before the initial welcome screen.

Pre-install specified by providing 'cloudStack.preInstall,' which
returns a jQuery object to be displayed. It passes args.complete,
which when called will proceed to the first step of the install
wizard.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f92db64c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f92db64c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f92db64c

Branch: refs/heads/rbd-snap-clone
Commit: f92db64c78778e58821073971152167472ef340d
Parents: cf8ff0c
Author: Brian Federle <bfederle@gmail.com>
Authored: Thu May 23 15:59:03 2013 -0700
Committer: Brian Federle <bfederle@gmail.com>
Committed: Thu May 23 15:59:03 2013 -0700

----------------------------------------------------------------------
 ui/scripts/ui-custom/installWizard.js |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f92db64c/ui/scripts/ui-custom/installWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/installWizard.js b/ui/scripts/ui-custom/installWizard.js
index 86919f9..9f1f4c7 100644
--- a/ui/scripts/ui-custom/installWizard.js
+++ b/ui/scripts/ui-custom/installWizard.js
@@ -298,6 +298,17 @@
      * Layout/behavior for each step in wizard
      */
     var steps = {
+      start: function(args) {
+        if (cloudStack.preInstall) {
+          return cloudStack.preInstall({
+            complete: function() {
+              goTo('intro');
+            }
+          });
+        }
+
+        return steps.intro(args);
+      },
       intro: function(args) {
         var $intro = $('<div></div>').addClass('intro what-is-cloudstack');
         var $title = $('<div></div>').addClass('title').html(_l('label.what.is.cloudstack'));
@@ -775,7 +786,7 @@
       }
     };
 
-    var initialStep = steps.intro().addClass('step');
+    var initialStep = steps.start().addClass('step');
     
 
     showDiagram('');


Mime
View raw message