Re: BUG?: AJAX output of the Wire on profiles ignores 'post-list.php' template
I also have the following Javascript which gives an Ajax effect when deleting wire posts; deletes it in the background and hides that comment:
jQuery('#wire-block ul li a:contains("[Delete]")').click(function(){
var deleteURL = jQuery(this).attr('href');
jQuery.post(deleteURL);
jQuery(this).parent().parent().fadeOut();
return false;
});
Which works really well, until I move from the wire comments on paginated page 1, to any other. So not only is the built in Ajax from BP ignoring my custom wire loop, it also ignores the Javascript…
How do I ensure my Javascript works on paginated outputs?