From a447aecd953a7a4ab469777b237624cca02ebbb3 Mon Sep 17 00:00:00 2001 From: Andrew Patton Date: Fri, 25 Jul 2014 17:47:01 -0400 Subject: [PATCH] Fix for erroneous Submitting mode on button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Click handler was also attaching to “Select Attachments” button, so modified selector to grab #issue-reply-btn by ID and submit button --- public/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);