Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 12:46:09 +01:00

Merge pull request #347 from nuss-justin/dev

Fix wrong selector for AJAX issue creation.
This commit is contained in:
无闻 2014-08-04 13:47:43 -04:00
commit 6f6fda1481

View 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…");
$button.html("Submitting…");
});
fileInput.form.addEventListener("submit", function(event) {