diff options
author | Andrew Patton <andrew@acusti.ca> | 2014-07-25 17:47:01 -0400 |
---|---|---|
committer | Andrew Patton <andrew@acusti.ca> | 2014-07-25 17:47:01 -0400 |
commit | a447aecd953a7a4ab469777b237624cca02ebbb3 (patch) | |
tree | dffc1929875e28866a63c89b470e3d70a7e4737c /public/js | |
parent | c084a5ba735144576cffbdfe3b193fc9fc8e67f8 (diff) | |
download | gitea-a447aecd953a7a4ab469777b237624cca02ebbb3.tar.gz gitea-a447aecd953a7a4ab469777b237624cca02ebbb3.zip |
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
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/app.js b/public/js/app.js index ef54aaf811..b69d333958 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -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); |