mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02:00
[feature/soft-delete] Remove the "Deleted by" message when restoring a post
PHPBB3-9567
This commit is contained in:
parent
51966bd497
commit
b30a608f35
@ -26,9 +26,18 @@ phpbb.add_ajax_callback('post_delete', function() {
|
||||
// This callback removes the approve / disapprove div or link.
|
||||
phpbb.add_ajax_callback('post_visibility', function(res) {
|
||||
var remove = (res.visible) ? $(this) : $(this).parents('.post');
|
||||
|
||||
$(remove).css('pointer-events', 'none').fadeOut(function() {
|
||||
$(this).remove();
|
||||
});
|
||||
|
||||
if (res.visible)
|
||||
{
|
||||
// Remove the "Deleted by" message from the post on restoring.
|
||||
remove.parents('.post').find('.post_deleted_msg').css('pointer-events', 'none').fadeOut(function() {
|
||||
$(this).remove();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// This removes the parent row of the link or form that fired the callback.
|
||||
|
@ -199,7 +199,7 @@
|
||||
|
||||
<!-- IF postrow.S_DISPLAY_NOTICE --><div class="rules">{L_DOWNLOAD_NOTICE}</div><!-- ENDIF -->
|
||||
<!-- IF postrow.DELETED_MESSAGE or postrow.DELETE_REASON -->
|
||||
<div class="notice">{postrow.DELETED_MESSAGE}
|
||||
<div class="notice post_deleted_msg">{postrow.DELETED_MESSAGE}
|
||||
<!-- IF postrow.DELETE_REASON --><br /><strong>{L_REASON}:</strong> <em>{postrow.DELETE_REASON}</em><!-- ENDIF -->
|
||||
</div>
|
||||
<!-- ELSEIF postrow.EDITED_MESSAGE or postrow.EDIT_REASON -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user