Skip to:
Content

BuddyPress.org

Changeset 8138


Ignore:
Timestamp:
03/17/2014 07:22:09 PM (10 years ago)
Author:
boonebgorges
Message:

Use closest() instead of parent() to hide unfavorited activity item

Ancestor-crawling makes for inflexible javascript, which makes for sad developers.

Fixes #5467

Props hnla

File:
1 edited

Legend:

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

    r8063 r8138  
    294294
    295295                if ( 'activity-favorites' == jq( '.item-list-tabs li.selected').attr('id') )
    296                     target.parent().parent().parent().slideUp(100);
     296                    target.closest( '.activity-item' ).slideUp( 100 );
    297297            });
    298298
Note: See TracChangeset for help on using the changeset viewer.