summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-08-04 13:47:43 -0400
committer无闻 <joe2010xtmf@163.com>2014-08-04 13:47:43 -0400
commit6f6fda1481fc299bbdf3c1106ee6474f8b614fa2 (patch)
tree3adc900195fe580c0579e9a3af41dc375d92450c
parent5f84e8f4fffa103438e3d1af9dfe3ad8f669e4e5 (diff)
parent2cb754b5afe29c73f7470c8a5c350610a2130a98 (diff)
downloadgitea-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.js4
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&hellip;");
+ $button.html("Submitting&hellip;");
});
fileInput.form.addEventListener("submit", function(event) {