diff --git a/web/src/main/resources/static/js/index.js b/web/src/main/resources/static/js/index.js index 3a49024..1b5c89f 100644 --- a/web/src/main/resources/static/js/index.js +++ b/web/src/main/resources/static/js/index.js @@ -3,9 +3,6 @@ const forms = document.getElementsByTagName('form') for (let i = 0; i < forms.length; i++) { const form = forms[i] form.onsubmit = () => { - const inputs = form.getElementsByTagName('input') - for (let j = 0; j < inputs.length; j++) { - inputs[j].disabled = true - } + form.querySelector('input[type="submit"]').disabled = true } } \ No newline at end of file