Skip to:
Content

BuddyPress.org

Changeset 5998


Ignore:
Timestamp:
04/20/2012 09:10:36 PM (12 years ago)
Author:
boonebgorges
Message:

Switches parent() walker to .closest() when looking for activity parent item in activity-favoriting JS, for better child theme compatibility. Fixes #3821. Props hnla

File:
1 edited

Legend:

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

    r5931 r5998  
    189189        if ( target.hasClass('fav') || target.hasClass('unfav') ) {
    190190            var type = target.hasClass('fav') ? 'fav' : 'unfav';
    191             var parent = target.parent().parent().parent();
     191            var parent = target.closest('.activity_update');
    192192            var parent_id = parent.attr('id').substr( 9, parent.attr('id').length );
    193193
Note: See TracChangeset for help on using the changeset viewer.