diff --git a/domain-server/resources/web/js/shared.js b/domain-server/resources/web/js/shared.js index 8d69d16c98..0395106297 100644 --- a/domain-server/resources/web/js/shared.js +++ b/domain-server/resources/web/js/shared.js @@ -509,7 +509,7 @@ function createDomainIDPrompt(callback) { confirmButtonText: "Create", closeOnConfirm: false, html: true - }, function(inputValue) { + }, function (inputValue) { if (inputValue === false) { return false; } diff --git a/domain-server/resources/web/wizard/js/wizard.js b/domain-server/resources/web/wizard/js/wizard.js index ec4ce859e8..6c46a3b35c 100644 --- a/domain-server/resources/web/wizard/js/wizard.js +++ b/domain-server/resources/web/wizard/js/wizard.js @@ -173,13 +173,13 @@ function setupWizardSteps() { } function promptToCreateDomainID() { - setTimeout(function() { - createDomainIDPrompt(function(label) { + setTimeout(function () { + createDomainIDPrompt(function (label) { var domainJSON = { "label": label - } + }; - $.post("/api/domains", domainJSON, function(data) { + $.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); @@ -188,11 +188,11 @@ function promptToCreateDomainID() { "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() { + }, 'json').fail(function () { console.log("Failed to create domain ID..."); goToNextStep(); });