Changeset 11859
- Timestamp:
- 02/17/2018 12:15:20 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/js/buddypress-activity.js
r11686 r11859 356 356 } ); 357 357 358 // If all parents are hidden, reveal at least the last on. It seems very risky to manipulate the DOM to keep exactly 5 comments!358 // If all parents are hidden, reveal at least one. It seems very risky to manipulate the DOM to keep exactly 5 comments! 359 359 if ( $( comment_parents ).children( '.bp-hidden' ).length === $( comment_parents ).children( 'li' ).length - 1 && $( comment_parents ).find( 'li.show-all' ) ) { 360 $( comment_parents ).children( 'li' ). last().removeClass( 'bp-hidden' ).toggle();360 $( comment_parents ).children( 'li' ).removeClass( 'bp-hidden' ).toggle(); 361 361 } 362 362 } );
Note: See TracChangeset
for help on using the changeset viewer.