mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
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.
This commit is contained in:
parent
cf8ff0cc65
commit
f92db64c78
@ -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('');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user