Prechádzať zdrojové kódy

Fix wrong selector for AJAX issue creation.

Justin Nuß 10 rokov pred
rodič
commit
2cb754b5af
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      public/js/app.js

+ 2 - 2
public/js/app.js

@@ -638,7 +638,7 @@ function initIssue() {
         
         var clickedButton;
         
-        $('#issue-reply-btn,input[type="submit"]', fileInput.form).on('click', function() {
+        $('input[type="submit"],input[type="button"],button.btn-success', fileInput.form).on('click', function() {
             clickedButton = this;
 
             var $button = $(this);
@@ -646,7 +646,7 @@ function initIssue() {
             $button.removeClass("btn-success btn-default");
             $button.addClass("btn-warning");
 
-            $button.text("Submitting…");
+            $button.html("Submitting…");
         });
 
         fileInput.form.addEventListener("submit", function(event) {