diff --git a/domain-server/resources/web/js/shared.js b/domain-server/resources/web/js/shared.js index b52928914a..02243fe53d 100644 --- a/domain-server/resources/web/js/shared.js +++ b/domain-server/resources/web/js/shared.js @@ -501,7 +501,8 @@ function prepareAccessTokenPrompt(callback) { } function createDomainIDPrompt(callback) { - swal({ + swal( + { title: 'Finish Registering Domain', type: 'input', text: 'Enter a label for this machine.

This will help you identify which domain ID belongs to which machine.

This is a required step for registration.

', @@ -509,14 +510,14 @@ function createDomainIDPrompt(callback) { confirmButtonText: "Create", closeOnConfirm: false, html: true - }, function(inputValue){ + }, function(inputValue) { if (inputValue === false) { return false; } if (inputValue === "") { - swal.showInputError("Please enter a valid label for your machine.") - return false + swal.showInputError("Please enter a valid label for your machine."); + return false; } if (callback) { diff --git a/domain-server/resources/web/wizard/js/wizard.js b/domain-server/resources/web/wizard/js/wizard.js index 995c34d9ec..377a3f755c 100644 --- a/domain-server/resources/web/wizard/js/wizard.js +++ b/domain-server/resources/web/wizard/js/wizard.js @@ -179,7 +179,7 @@ function promptToCreateDomainID() { "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);