Skip to content

Commit

Permalink
fix: js get submit button if not input element
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Dec 18, 2023
1 parent 6fbdf37 commit 0f1883b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/komments.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 0f1883b

Please sign in to comment.