thrimbletrimmer: Fix some typos in the new error handling

pull/116/head
Mike Lang 5 years ago
parent da3cc24ed1
commit 7dea1f0cdb

@ -137,7 +137,7 @@ thrimbletrimmerSubmit = function(state) {
alert(error); alert(error);
document.getElementById('SubmitButton').disabled = false; document.getElementById('SubmitButton').disabled = false;
} else { } else {
setTimeout(() => window.location.href = '/thrimbletrimmer/dashboard.html'; }, 500); setTimeout(() => { window.location.href = '/thrimbletrimmer/dashboard.html'; }, 500);
} }
})); }));
}; };
@ -184,7 +184,7 @@ thrimbletrimmerManualLink = function() {
document.getElementById("ManualButton").disabled = false; document.getElementById("ManualButton").disabled = false;
} else { } else {
alert("Manual link set to " + body.link); alert("Manual link set to " + body.link);
setTimeout(() => window.location.href = '/thrimbletrimmer/dashboard.html'; }, 500); setTimeout(() => { window.location.href = '/thrimbletrimmer/dashboard.html'; }, 500);
} }
})); }));
}; };
@ -221,7 +221,7 @@ thrimbletrimmerResetLink = function() {
document.getElementById("ResetButton").disabled = false; document.getElementById("ResetButton").disabled = false;
} else { } else {
alert("Row has been reset. Reloading..."); alert("Row has been reset. Reloading...");
setTimeout(() => window.location.reload(); }, 500); setTimeout(() => { window.location.reload(); }, 500);
} }
})); }));
}; };

Loading…
Cancel
Save