forked from andyburke/autonomous.contact
feature: blurbs
refactor: style updates and fixes
This commit is contained in:
parent
591fd38088
commit
cbd58071b8
9 changed files with 101 additions and 52 deletions
|
|
@ -1,8 +1,7 @@
|
|||
function smarten_forms() {
|
||||
const forms = document.body.querySelectorAll("form[data-smart]:not([data-smartened])");
|
||||
const forms = document?.body?.querySelectorAll("form[data-smart]:not([data-smartened])") ?? [];
|
||||
for (const form of forms) {
|
||||
async function on_submit(event) {
|
||||
debugger;
|
||||
event.preventDefault();
|
||||
form.disabled = true;
|
||||
form.__submitted_at = new Date();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue