mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +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:
committed by
Igor Wiedler
parent
05a88966d4
commit
0d83e8725b
@@ -7,7 +7,7 @@ phpbb.add_ajax_callback('post_delete', function() {
|
|||||||
if (el.data('refresh') === undefined)
|
if (el.data('refresh') === undefined)
|
||||||
{
|
{
|
||||||
var post_id = el[0].href.split('&p=')[1];
|
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();
|
$(this).remove();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user