0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-17 15:31:06 +01:00

Fix wrong selector for AJAX issue creation.

This commit is contained in:
Justin Nuß 2014-08-04 11:02:29 +02:00
parent 755eec745f
commit 2cb754b5af

View file

@ -638,7 +638,7 @@ function initIssue() {
var clickedButton; 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; clickedButton = this;
var $button = $(this); var $button = $(this);
@ -646,7 +646,7 @@ function initIssue() {
$button.removeClass("btn-success btn-default"); $button.removeClass("btn-success btn-default");
$button.addClass("btn-warning"); $button.addClass("btn-warning");
$button.text("Submitting…"); $button.html("Submitting…");
}); });
fileInput.form.addEventListener("submit", function(event) { fileInput.form.addEventListener("submit", function(event) {