Skip to:
Content

BuddyPress.org

Changeset 13770


Ignore:
Timestamp:
03/14/2024 03:31:49 AM (13 months ago)
Author:
imath
Message:

BP Nouveau: Avoid toggling the show-all comments link's visibility

Fixes #9121
Closes https://github.com/buddypress/buddypress/pull/253

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/js/buddypress-activity.js

    r13344 r13770  
    362362                // If all parents are hidden, reveal at least one. It seems very risky to manipulate the DOM to keep exactly 5 comments!
    363363                if ( $( comment_parents ).children( '.bp-hidden' ).length === $( comment_parents ).children( 'li' ).length - 1 && $( comment_parents ).find( 'li.show-all' ).length ) {
    364                     $( comment_parents ).children( 'li' ).removeClass( 'bp-hidden' ).toggle();
     364                    $( comment_parents ).children( 'li:not(.show-all)' ).removeClass( 'bp-hidden' ).toggle();
    365365                }
    366366            } );
Note: See TracChangeset for help on using the changeset viewer.