0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 01:34:21 +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:
Andrew Patton 2014-07-25 17:47:01 -04:00
parent c084a5ba73
commit a447aecd95

View file

@ -640,7 +640,7 @@ function initIssue() {
var clickedButton = undefined; 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; clickedButton = this;
var $button = $(this); var $button = $(this);