fixing tetanus-shot date validation
This commit is contained in:
parent
5bdabd920e
commit
cba16088c5
|
@ -13,7 +13,7 @@
|
|||
|
||||
if (data.get("tetanus-shot") === "") {
|
||||
console.warn("NO DATE FOR TETANUS SHOT");
|
||||
data.set("tetanus-shot", "0000-00-00");
|
||||
data.set("tetanus-shot", "1111-11-11");
|
||||
console.log(data.get("tetanus-shot"));
|
||||
}
|
||||
|
||||
|
@ -59,6 +59,7 @@
|
|||
|
||||
if (xhr.status === 200) {
|
||||
console.log('SUCCESS', xhr.responseText);
|
||||
window.location.href = "/thankyou/";
|
||||
} else {
|
||||
console.warn('request_error', xhr.responseText);
|
||||
}
|
||||
|
@ -67,7 +68,6 @@
|
|||
xhr.send(data);
|
||||
console.log(data);
|
||||
console.log("Hallo!");
|
||||
window.location.href = "/thankyou/";
|
||||
/* window.location.replace("https://tfcconnection.org/thankyou/"); */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue