Skip to:
Content

BuddyPress.org

Changeset 13190


Ignore:
Timestamp:
12/16/2021 06:53:50 PM (3 years ago)
Author:
imath
Message:

BP Legacy: Improve the Activity "Show All" comments count

Props magland

Fixes #8088

File:
1 edited

Legend:

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

    r13114 r13190  
    11/* jshint undef: false, unused:false */
    22/* @version 1.7.0 */
    3 /* @version 8.0.0 */
     3/* @version 10.0.0 */
    44// AJAX Functions
    55var jq = jQuery;
     
    20232023        comment_count = ' ';
    20242024
    2025         if ( jq('#' + parent_li.attr('id') + ' li').length ) {
    2026             comment_count = jq('#' + parent_li.attr('id') + ' li').length;
     2025        if ( jq('#' + parent_li.attr('id') + ' li[id*="acomment-"]').length ) {
     2026            comment_count = jq('#' + parent_li.attr('id') + ' li[id*="acomment-"]').length;
    20272027        }
    20282028
Note: See TracChangeset for help on using the changeset viewer.