mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-20 21:49:04 -04:00
Hide Reply button in the discussions once clicked to avoid losing the text input
This commit is contained in:
parent
7a42f31aef
commit
5654ef2db8
3 changed files with 8 additions and 1 deletions
|
@ -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('');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue