Switch submit order
This commit is contained in:
parent
7682d9fd47
commit
53c4fb0f89
1 changed files with 10 additions and 6 deletions
|
@ -79,12 +79,6 @@ function submitSignup() {
|
|||
submitBtn.innerHTML = '';
|
||||
submitBtn.appendChild(spinner);
|
||||
|
||||
// Enable the button and remove the spinner after 5 seconds
|
||||
setTimeout(function () {
|
||||
submitBtn.disabled = false;
|
||||
submitBtn.innerHTML = 'Sign Up';
|
||||
}, 5000);
|
||||
sleep(5000).then(() => { submitBtn.disabled = false; });
|
||||
|
||||
// Get the values of the signup form fields
|
||||
const name = document.getElementById("name").value;
|
||||
|
@ -117,6 +111,16 @@ function submitSignup() {
|
|||
.catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
|
||||
// Enable the button and remove the spinner after 5 seconds
|
||||
setTimeout(function () {
|
||||
submitBtn.disabled = false;
|
||||
submitBtn.innerHTML = 'Sign Up';
|
||||
}, 5000);
|
||||
sleep(5000).then(() => { submitBtn.disabled = false; });
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue