Přesnější query (aby nebral i jiné formuláře)

This commit is contained in:
Jonas Havelka 2025-01-21 07:39:55 +01:00
parent 7a4c8239f6
commit 9aa3a5154d

View file

@ -62,5 +62,5 @@
.catch(error => {alert("Něco se nepovedlo:" + error);});
}
for (const form of document.querySelectorAll("[action='']")) form.addEventListener('submit', async event => { zmenStavKorektury(event); });
for (const form of document.querySelectorAll(".corr-buttons form")) form.addEventListener('submit', async event => { zmenStavKorektury(event); });
</script>