Skip to:
Content

BuddyPress.org

Changeset 6973


Ignore:
Timestamp:
05/01/2013 02:20:52 AM (11 years ago)
Author:
boonebgorges
Message:

Use event delegation for directory buttons in bp-legacy

This ports r6919 to bp-legacy

See #4931, #4969

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7/bp-templates/bp-legacy/js/buddypress.js

    r6894 r6973  
    900900
    901901    /* Add / Remove friendship buttons */
    902     jq(".friendship-button a").on('click', function() {
     902    jq('#members-dir-list').on('click', '.friendship-button a', function() {
    903903        jq(this).parent().addClass('loading');
    904904        var fid = jq(this).attr('id');
     
    950950    /** Group Join / Leave Buttons **************************************/
    951951
    952     jq(".group-button a").on('click', function() {
     952    jq('#groups-dir-list').on('click', '.group-button a', function() {
    953953        var gid = jq(this).parent().attr('id');
    954954        gid = gid.split('-');
Note: See TracChangeset for help on using the changeset viewer.