]> source.dussan.org Git - gitea.git/commitdiff
Fix wrong selector for AJAX issue creation.
authorJustin Nuß <justin.nuss@hmmh.de>
Mon, 4 Aug 2014 09:02:29 +0000 (11:02 +0200)
committerJustin Nuß <justin.nuss@hmmh.de>
Mon, 4 Aug 2014 09:02:29 +0000 (11:02 +0200)
public/js/app.js

index 2069c1e8d23c7f926321f519c0124d2b8b294f6a..9dea65eb8583935b713fa034b10e7036b2d06eca 100644 (file)
@@ -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&hellip;");
+            $button.html("Submitting&hellip;");
         });
 
         fileInput.form.addEventListener("submit", function(event) {