mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-19 04:10:52 +00:00
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:
parent
b672899372
commit
271a011ba1
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue