|
|
@ -7,7 +7,6 @@ var steps = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: 'db-confirm',
|
|
|
|
name: 'db-confirm',
|
|
|
|
text: 'Confirm the information below',
|
|
|
|
text: 'Confirm the information below',
|
|
|
|
showBack: true,
|
|
|
|
|
|
|
|
callback: undefined
|
|
|
|
callback: undefined
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -47,13 +46,6 @@ function goToStep(step) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$('#tools-button').hide();
|
|
|
|
$('#tools-button').hide();
|
|
|
|
$('#back-button').show();
|
|
|
|
$('#back-button').show();
|
|
|
|
|
|
|
|
|
|
|
|
if (!steps[step].showBack) {
|
|
|
|
|
|
|
|
$('#back-button').hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!steps[step].showNext) {
|
|
|
|
|
|
|
|
$('#next-button').hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (step === steps.length - 1) {
|
|
|
|
if (step === steps.length - 1) {
|
|
|
@ -62,6 +54,15 @@ function goToStep(step) {
|
|
|
|
$('#next-button').show();
|
|
|
|
$('#next-button').show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Back/Next button overrides
|
|
|
|
|
|
|
|
if (steps[step].showBack !== undefined && !steps[step].showBack) {
|
|
|
|
|
|
|
|
$('#back-button').hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (steps[step].showNext !== undefined && !steps[step].showNext) {
|
|
|
|
|
|
|
|
console.log('hiding this');
|
|
|
|
|
|
|
|
$('#next-button').hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$('#header-text').text(steps[step].text);
|
|
|
|
$('#header-text').text(steps[step].text);
|
|
|
|
|
|
|
|
|
|
|
|
if (steps[step].callback !== undefined) {
|
|
|
|
if (steps[step].callback !== undefined) {
|
|
|
@ -80,7 +81,7 @@ function installOrUpdate() {
|
|
|
|
success: function(data) {
|
|
|
|
success: function(data) {
|
|
|
|
data = JSON.parse(data);
|
|
|
|
data = JSON.parse(data);
|
|
|
|
|
|
|
|
|
|
|
|
$('[data-step="install-or-update"] > .fa-spinner').hide();
|
|
|
|
$('[data-step="install-or-update"] > #spinner').hide();
|
|
|
|
$('[data-step="install-or-update"] > .progress').show();
|
|
|
|
$('[data-step="install-or-update"] > .progress').show();
|
|
|
|
|
|
|
|
|
|
|
|
// Recursive call that will increment by 1 each time
|
|
|
|
// Recursive call that will increment by 1 each time
|
|
|
|