From 0f1883beb4bdf901c03c572c09c2a0da8f1095ae Mon Sep 17 00:00:00 2001 From: Maurice Renck Date: Mon, 18 Dec 2023 15:59:30 +0100 Subject: [PATCH] fix: js get submit button if not input element --- assets/komments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/komments.js b/assets/komments.js index 812a0eb..43646c2 100644 --- a/assets/komments.js +++ b/assets/komments.js @@ -15,7 +15,7 @@ docReady(function () { const kommentAuthor = document.querySelector('#kommentform #author'); const kommentUrl = document.querySelector('#kommentform #author_url'); const timeField = document.querySelector('#kommentform .cts'); - const submitField = document.querySelector('#kommentform input[type=submit]'); + const submitField = document.querySelector('#kommentform [type=submit]'); const spamIndicatorProgress = document.querySelector('#kommentform .spam-indicator .progress'); const sendingIndicator = document.querySelector('#kommentform .loader'); const formFeedback = document.querySelector('#kommentform .form-feedback');