From 271a011ba1b545c838eea450982c43dabcfecf71 Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Sat, 23 Jan 2021 03:08:19 +0100 Subject: [PATCH] Fix close/reopen with comment (#14436) it previously only worked for the simple textarea, and not for the rich textarea --- web_src/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/index.js b/web_src/js/index.js index 9aa63a83e..16bb412f0 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 {