diff options
author | Justin Nuß <justin.nuss@hmmh.de> | 2014-08-04 11:02:29 +0200 |
---|---|---|
committer | Justin Nuß <justin.nuss@hmmh.de> | 2014-08-04 11:02:29 +0200 |
commit | 2cb754b5afe29c73f7470c8a5c350610a2130a98 (patch) | |
tree | 780748afd42114a8f04168b8e797e9440f01adbf /public | |
parent | 755eec745fa324fdd13078f0147638f8731652ba (diff) | |
download | gitea-2cb754b5afe29c73f7470c8a5c350610a2130a98.tar.gz gitea-2cb754b5afe29c73f7470c8a5c350610a2130a98.zip |
Fix wrong selector for AJAX issue creation.
Diffstat (limited to 'public')
-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) { |