[buddypress-trac] [BuddyPress] #978: Ajax pagination on the Wire does not honor JS
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Sun Sep 6 19:55:38 UTC 2009
#978: Ajax pagination on the Wire does not honor JS
-----------------------+----------------------------------------------------
Reporter: hempsworth | Owner:
Type: defect | Status: new
Priority: major | Milestone: 1.1
Keywords: |
-----------------------+----------------------------------------------------
Running on the latest trunk, when you click 'Delete' on a wire item, you
are prompted to confirm your choice to delete or not. When the list is
paginated and you move to another set of wire entries, the Ajax seems to
strip the JS and you aren't prompted.
Also, I created the following custom JS to give the deletion process a
slight Ajax feel:
{{{
jQuery('#wire-post-list li a.delete').click(function(){
var deleteURL = jQuery(this).attr('href');
jQuery.post(deleteURL);
jQuery(this).parent().parent().fadeOut();
return false;
});
}}}
But although that works on the first page of wire posts, it is ignored on
further paginated pages.
--
Ticket URL: <http://trac.buddypress.org/ticket/978>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list