]> source.dussan.org Git - gitea.git/commitdiff
Fix close/reopen with comment (#14436)
authorJimmy Praet <jimmy.praet@telenet.be>
Sat, 23 Jan 2021 02:08:19 +0000 (03:08 +0100)
committerGitHub <noreply@github.com>
Sat, 23 Jan 2021 02:08:19 +0000 (03:08 +0100)
it previously only worked for the simple textarea, and not for the rich textarea

web_src/js/index.js

index 9aa63a83ed5be16fca8689df960709bc7d8dbca2..16bb412f0962b294621905426d5d22667bb12f7f 100644 (file)
@@ -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 {