Fix close/reopen with comment (#14436)

it previously only worked for the simple textarea, and not for the rich textarea
This commit is contained in:
Jimmy Praet 2021-01-23 03:08:19 +01:00 committed by GitHub
parent b672899372
commit 271a011ba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1145,7 +1145,7 @@ async function initRepository() {
// Change status // Change status
const $statusButton = $('#status-button'); const $statusButton = $('#status-button');
$('#comment-form .edit_area').on('keyup', function () { $('#comment-form textarea').on('keyup', function () {
if ($(this).val().length === 0) { if ($(this).val().length === 0) {
$statusButton.text($statusButton.data('status')); $statusButton.text($statusButton.data('status'));
} else { } else {