1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[feature/soft-delete] Remove the "Deleted by" message when restoring a post

PHPBB3-9567
This commit is contained in:
Joas Schilling
2012-12-10 21:32:45 +01:00
parent 51966bd497
commit b30a608f35
2 changed files with 10 additions and 1 deletions

View File

@@ -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.