diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-08-04 13:47:43 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-08-04 13:47:43 -0400 |
commit | 6f6fda1481fc299bbdf3c1106ee6474f8b614fa2 (patch) | |
tree | 3adc900195fe580c0579e9a3af41dc375d92450c | |
parent | 5f84e8f4fffa103438e3d1af9dfe3ad8f669e4e5 (diff) | |
parent | 2cb754b5afe29c73f7470c8a5c350610a2130a98 (diff) | |
download | gitea-6f6fda1481fc299bbdf3c1106ee6474f8b614fa2.tar.gz gitea-6f6fda1481fc299bbdf3c1106ee6474f8b614fa2.zip |
Merge pull request #347 from nuss-justin/dev
Fix wrong selector for AJAX issue creation.
-rw-r--r-- | public/js/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/app.js b/public/js/app.js index 2069c1e8d2..9dea65eb85 100644 --- a/public/js/app.js +++ b/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) { |