Skip to:
Content

BuddyPress.org

Changeset 6922


Ignore:
Timestamp:
04/19/2013 11:58:10 AM (12 years ago)
Author:
boonebgorges
Message:

Use event delegation for removing group invites in bp-default

When jQuery.live() was replaced with jQuery.on() in r6635 #4714, it broke
some places in BP's JS where events must be bound to items added to the page
after document.ready(). In these cases, event delegation should be used. This
changeset fixes a problem where AJAX was broken for "Remove Invite" buttons on
group invitation pages for newly-added items on bp-default.

The same bug was fixed for bp-legacy in r6791. See #4763.

Fixes #4943

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/global.js

    r6918 r6922  
    784784
    785785    /* Remove a user from the list of users to invite to a group */
    786     jq("#friend-list li a.remove").on('click', function() {
     786    jq("#friend-list").on('click', 'li a.remove', function() {
    787787        jq('.ajax-loader').toggle();
    788788
Note: See TracChangeset for help on using the changeset viewer.