Skip to:
Content

BuddyPress.org

Ticket #2587: 2587.001.patch

File 2587.001.patch, 792 bytes (added by r-a-y, 15 years ago)
  • buddypress/bp-themes/bp-default/_inc/global.js

     
    11921192
    11931193                var comments_div = jq(this);
    11941194                var parent_li = comments_div.parents('ul#activity-stream > li');
    1195                 var comment_lis = jq(this).children('ul').children('li');
     1195                var comment_lis = jq(this).children('ul').find('li');
    11961196                var comment_count = ' ';
    11971197
    11981198                if ( jq('li#' + parent_li.attr('id') + ' a.acomment-reply span').length )
     
    12001200
    12011201                comment_lis.each( function(i) {
    12021202                        /* Show the latest 5 root comments */
    1203                         if ( i < comment_lis.length - 5 ) {
     1203                        if ( i < comment_lis.size() - 5 ) {
    12041204                                jq(this).addClass('hidden');
    12051205                                jq(this).toggle();
    12061206