Changeset 6818
- Timestamp:
- 02/23/2013 06:53:41 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-templates/bp-legacy/js/buddypress.js
r6791 r6818 209 209 210 210 if ( 'fav' == type ) { 211 if ( !jq('.item-list-tabs #activity-favorites').length ) 212 jq('.item-list-tabs ul #activity-mentions').before( '<li id="activity-favorites"><a href="#">' + BP_DTheme.my_favs + ' <span>0</span></a></li>'); 211 if ( !jq('.item-list-tabs #activity-mentions-personal-li').length ) { 212 if ( !jq('.item-list-tabs #activity-favorites').length ) 213 jq('.item-list-tabs ul #activity-mentions').before( '<li id="activity-favorites"><a href="#">' + BP_DTheme.my_favs + ' <span>0</span></a></li>'); 214 215 jq('.item-list-tabs ul #activity-favorites span').html( Number( jq('.item-list-tabs ul #activity-favorites span').html() ) + 1 ); 216 } 213 217 214 218 target.removeClass('fav'); 215 219 target.addClass('unfav'); 216 220 217 jq('.item-list-tabs ul #activity-favorites span').html( Number( jq('.item-list-tabs ul #activity-favorites span').html() ) + 1 );218 221 } else { 219 222 target.removeClass('unfav');
Note: See TracChangeset
for help on using the changeset viewer.