Skip to:
Content

BuddyPress.org

Changeset 4655


Ignore:
Timestamp:
07/13/2011 08:19:03 PM (15 years ago)
Author:
boonebgorges
Message:

Ensure that JavaScript for activity item favoriting/unfavoriting uses the proper button class. Fixes #3329

File:
1 edited

Legend:

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

    r4450 r4655  
    157157        /* Favoriting activity stream items */
    158158        if ( target.hasClass('fav') || target.hasClass('unfav') ) {
    159             var type = target.attr('class')
     159            var type = target.hasClass('fav') ? 'fav' : 'unfav';
    160160            var parent = target.parent().parent().parent();
    161161            var parent_id = parent.attr('id').substr( 9, parent.attr('id').length );
Note: See TracChangeset for help on using the changeset viewer.