mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10270] Alter background colors for posts
Change background colors for posts after deleted post PHPBB3-10270
This commit is contained in:
parent
d3e7744dd6
commit
ac320fad05
1 changed files with 8 additions and 1 deletions
|
@ -10,7 +10,14 @@ phpbb.add_ajax_callback('post_delete', function() {
|
||||||
if (el.attr('data-refresh') === undefined)
|
if (el.attr('data-refresh') === undefined)
|
||||||
{
|
{
|
||||||
post_id = el[0].href.split('&p=')[1];
|
post_id = el[0].href.split('&p=')[1];
|
||||||
el.parents('#p' + post_id).css('pointer-events', 'none').fadeOut(function() {
|
var post = el.parents('#p' + post_id).css('pointer-events', 'none');
|
||||||
|
if (post.hasClass('bg1') || post.hasClass('bg2'))
|
||||||
|
{
|
||||||
|
var posts1 = post.nextAll('.bg1');
|
||||||
|
post.nextAll('.bg2').removeClass('bg2').addClass('bg1');
|
||||||
|
posts1.removeClass('bg1').addClass('bg2');
|
||||||
|
}
|
||||||
|
post.fadeOut(function() {
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue