Skip to:
Content

BuddyPress.org

Changeset 11597


Ignore:
Timestamp:
06/21/2017 08:57:45 PM (7 years ago)
Author:
r-a-y
Message:

bp-legacy: Fix older activity comment display when clicking on the "Show All Comments" button in some instances.

Previously, we were adding the .hidden CSS class to either style or hide
older activity items (not sure what the original intention behind this
class was). This can conflict with themes (particularly those powered by
Bootstrap) or plugins using the .hidden CSS declaration in their
stylesheets to hide the item entirely using the display: none rule.

To fix this issue, this commit removes the .hidden CSS class addition
entirely and hides the activity comments using jQuery's hide() function.

Props antonioeatgoat.

Fixes #7490.

File:
1 edited

Legend:

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

    r11586 r11597  
    19721972            /* Show the latest 5 root comments */
    19731973            if ( i < comment_lis.length - 5 ) {
    1974                 jq(this).addClass('hidden');
    1975                 jq(this).toggle();
     1974                jq(this).hide();
    19761975
    19771976                if ( !i ) {
Note: See TracChangeset for help on using the changeset viewer.