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

[feature/soft-delete] Use JS to display softdeleted/ignored posts

PHPBB3-9567
This commit is contained in:
Joas Schilling
2012-11-09 11:46:17 +01:00
parent bb173afe3f
commit 1c584ef8ba
4 changed files with 53 additions and 14 deletions

View File

@@ -77,6 +77,20 @@ $('#qr_full_editor').click(function() {
});
/**
* Make the display post links to use JS
*/
$('.display_post').click(function(e) {
// Do not follow the link
e.preventDefault();
var post_id = $(this).attr('data-post-id');
$('#post_content' + post_id).show();
$('#profile' + post_id).show();
$('#post_hidden' + post_id).hide();
});
/**
* This AJAXifies the quick-mod tools. The reason it cannot be a standard