mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 15:23:33 +01:00
Fix for erroneous Submitting mode on button
Click handler was also attaching to “Select Attachments” button, so modified selector to grab #issue-reply-btn by ID and submit button
This commit is contained in:
parent
c084a5ba73
commit
a447aecd95
1 changed files with 1 additions and 1 deletions
|
@ -640,7 +640,7 @@ function initIssue() {
|
|||
|
||||
var clickedButton = undefined;
|
||||
|
||||
$("button,input[type=\"submit\"]", fileInput.form).on("click", function() {
|
||||
$('#issue-reply-btn,input[type="submit"]', fileInput.form).on('click', function() {
|
||||
clickedButton = this;
|
||||
|
||||
var $button = $(this);
|
||||
|
|
Loading…
Reference in a new issue