[ticket/10272] Renamed a JavaScript variable.

PHPBB3-10272
This commit is contained in:
Callum Macrae 2011-11-17 17:27:18 +00:00 committed by Igor Wiedler
parent 6d8ecd7104
commit e374678d7e

View file

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