mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -04:00
Hide Reply button in the discussions once clicked to avoid losing the text input
This commit is contained in:
@@ -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('');
|
||||
|
||||
Reference in New Issue
Block a user