From 065971381df7161cbaf93ad457ceae2b9645e33d Mon Sep 17 00:00:00 2001 From: kasenvr <52365539+kasenvr@users.noreply.github.com> Date: Tue, 13 Oct 2020 18:57:30 -0400 Subject: [PATCH] Update wizard.js --- .../resources/web/wizard/js/wizard.js | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/domain-server/resources/web/wizard/js/wizard.js b/domain-server/resources/web/wizard/js/wizard.js index 377a3f755c..ec4ce859e8 100644 --- a/domain-server/resources/web/wizard/js/wizard.js +++ b/domain-server/resources/web/wizard/js/wizard.js @@ -173,31 +173,31 @@ function setupWizardSteps() { } function promptToCreateDomainID() { - setTimeout(function(){ - createDomainIDPrompt(function(label) { - var domainJSON = { - "label": label - } - - $.post("/api/domains", domainJSON, function(data) { - // we successfully created a domain ID, set it on that field - var domainID = data.domain.domainId; - console.log("Setting domain ID to ", data, domainID); - - var formJSON = { - "metaverse": { - "id": domainID - } - } - - // POST the form JSON to the domain-server settings.json endpoint so the settings are saved - postSettings(formJSON, goToNextStep); - }, 'json').fail(function(){ - console.log("Failed to create domain ID..."); - goToNextStep(); - }); - }); - }, 500); // Apparently swal needs time before opening another prompt. + setTimeout(function() { + createDomainIDPrompt(function(label) { + var domainJSON = { + "label": label + } + + $.post("/api/domains", domainJSON, function(data) { + // we successfully created a domain ID, set it on that field + var domainID = data.domain.domainId; + console.log("Setting domain ID to ", data, domainID); + + var formJSON = { + "metaverse": { + "id": domainID + } + } + + // POST the form JSON to the domain-server settings.json endpoint so the settings are saved + postSettings(formJSON, goToNextStep); + }, 'json').fail(function() { + console.log("Failed to create domain ID..."); + goToNextStep(); + }); + }); + }, 500); // Apparently swal needs time before opening another prompt. } function updatePlaceNameLink(address) {