0
0
Fork 0
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:
Pēteris Caune 2022-10-14 12:34:05 +03:00
parent 2de1b457e5
commit 4351287c62
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2

View file

@ -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 {