Hide Reply button in the discussions once clicked to avoid losing the text input

This commit is contained in:
Ribas160 2025-05-23 13:37:38 +03:00
parent 7a42f31aef
commit 5654ef2db8
3 changed files with 8 additions and 1 deletions

View file

@ -3477,6 +3477,12 @@ jQuery.PrivateBin = (function($, RawDeflate) {
{
const $source = $(event.target);
// show all reply buttons
$commentContainer.find('button').removeClass('hidden');
// hide the current reply button
$source.addClass('hidden');
// clear input
$replyMessage.val('');
$replyNickname.val('');