1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-02 12:34:59 +02:00

[ticket/10272] Made a JS selector less specific.

Now, style authors can change the posts to not be divs without the code
breaking!

PHPBB3-10272
This commit is contained in:
Callum Macrae 2011-11-17 17:45:31 +00:00 committed by Igor Wiedler
parent 05a88966d4
commit 0d83e8725b

View File

@ -7,7 +7,7 @@ phpbb.add_ajax_callback('post_delete', function() {
if (el.data('refresh') === undefined)
{
var post_id = el[0].href.split('&p=')[1];
el.parents('div #p' + post_id).fadeOut(function() {
el.parents('#p' + post_id).fadeOut(function() {
$(this).remove();
});
}