Преглед на файлове

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