Skip to:
Content

BuddyPress.org

Ticket #7857: 7857.01.patch

File 7857.01.patch, 839 bytes (added by r-a-y, 8 years ago)
  • src/bp-templates/bp-nouveau/js/buddypress-activity.js

     
    351351                                } );
    352352
    353353                                // If all parents are hidden, reveal at least one. It seems very risky to manipulate the DOM to keep exactly 5 comments!
    354                                 if ( $( comment_parents ).children( '.bp-hidden' ).length === $( comment_parents ).children( 'li' ).length - 1 && $( comment_parents ).find( 'li.show-all' ) ) {
     354                                if ( $( comment_parents ).children( '.bp-hidden' ).length === $( comment_parents ).children( 'li' ).length - 1 && $( comment_parents ).find( 'li.show-all' ).length ) {
    355355                                        $( comment_parents ).children( 'li' ).removeClass( 'bp-hidden' ).toggle();
    356356                                }
    357357                        } );