瀏覽代碼

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
Andrew Patton 10 年之前
父節點
當前提交
a447aecd95
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/js/app.js

+ 1 - 1
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);