mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-04-11 15:51:19 +00:00
Fix the signup form to prevent multiple concurrent form submits
This commit is contained in:
parent
2de1b457e5
commit
4351287c62
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,9 @@ window.addEventListener("DOMContentLoaded", function(e) {
|
|||
var submitBtn = document.getElementById("signup-go");
|
||||
|
||||
function submitForm() {
|
||||
if (submitBtn.disabled) {
|
||||
return;
|
||||
}
|
||||
submitBtn.disabled = true;
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue