Skip to content

Commit

Permalink
Fix close/reopen with comment (#14436)
Browse files Browse the repository at this point in the history
it previously only worked for the simple textarea, and not for the rich textarea
  • Loading branch information
jpraet authored Jan 23, 2021
1 parent b672899 commit 271a011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 271a011

Please sign in to comment.