mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-08 10:34:35 +02:00
Apply suggestions from code review
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
parent
6232aba63e
commit
bb35521d29
1 changed files with 5 additions and 5 deletions
|
@ -356,7 +356,7 @@ $(document).ready(function(){
|
|||
});
|
||||
}
|
||||
|
||||
function showDomainCreationAlert (justConnected) {
|
||||
function showDomainCreationAlert(justConnected) {
|
||||
swal({
|
||||
title: 'Create new domain ID',
|
||||
type: 'input',
|
||||
|
@ -381,7 +381,7 @@ $(document).ready(function(){
|
|||
});
|
||||
}
|
||||
|
||||
function createNewDomainID (label, justConnected) {
|
||||
function createNewDomainID(label, justConnected) {
|
||||
// get the JSON object ready that we'll use to create a new domain
|
||||
var domainJSON = {
|
||||
"label": label
|
||||
|
@ -413,15 +413,15 @@ $(document).ready(function(){
|
|||
text: successText,
|
||||
html: true,
|
||||
confirmButtonText: 'Save'
|
||||
}, function() {
|
||||
}, function () {
|
||||
saveSettings();
|
||||
});
|
||||
}, 'json').fail(function(data) {
|
||||
}, 'json').fail(function (data) {
|
||||
failedToCreateDomainID(data, justConnected);
|
||||
});
|
||||
}
|
||||
|
||||
function failedToCreateDomainID (data, justConnected) {
|
||||
function failedToCreateDomainID(data, justConnected) {
|
||||
var errorText = "There was a problem creating your new domain ID. Do you want to try again or";
|
||||
|
||||
if (data && data.status === "failure") {
|
||||
|
|
Loading…
Reference in a new issue