summaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorJimmy Praet <jimmy.praet@telenet.be>2021-01-23 03:08:19 +0100
committerGitHub <noreply@github.com>2021-01-23 03:08:19 +0100
commit271a011ba1b545c838eea450982c43dabcfecf71 (patch)
tree5354e19ae8b1f8064349fc9511c1e203545f4540 /web_src/js
parentb672899372d968d9976b008f9bae60bad6882586 (diff)
downloadgitea-271a011ba1b545c838eea450982c43dabcfecf71.tar.gz
gitea-271a011ba1b545c838eea450982c43dabcfecf71.zip
Fix close/reopen with comment (#14436)
it previously only worked for the simple textarea, and not for the rich textarea
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 9aa63a83ed..16bb412f09 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1145,7 +1145,7 @@ async function initRepository() {
// Change status
const $statusButton = $('#status-button');
- $('#comment-form .edit_area').on('keyup', function () {
+ $('#comment-form textarea').on('keyup', function () {
if ($(this).val().length === 0) {
$statusButton.text($statusButton.data('status'));
} else {