From 2cb754b5afe29c73f7470c8a5c350610a2130a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Justin=20Nu=C3=9F?= Date: Mon, 4 Aug 2014 11:02:29 +0200 Subject: [PATCH] Fix wrong selector for AJAX issue creation. --- public/js/app.js | 4 ++-- 1 file 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) {