Skip to:
Content

BuddyPress.org

Changeset 2660


Ignore:
Timestamp:
02/11/2010 10:54:25 AM (15 years ago)
Author:
apeatling
Message:

Fixes #1899

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/global.js

    r2644 r2660  
    403403                } else {
    404404                    var children = j( 'li#' + comment_li.attr('id') + ' ul' ).children('li');
     405                    var child_count = 0;
     406                    j(children).each( function() {
     407                        if ( !j(this).is(':hidden') )
     408                            child_count++;
     409                    });
    405410                    comment_li.fadeOut(200);
    406411
    407412                    /* Decrease the "Reply (X)" button count */
    408413                    var parent_li = comment_li.parents('ul#activity-stream > li');
    409                     j('li#' + parent_li.attr('id') + ' a.acomment-reply span').html( j('li#' + parent_li.attr('id') + ' a.acomment-reply span').html() - ( 1 + children.length ) );
     414                    j('li#' + parent_li.attr('id') + ' a.acomment-reply span').html( j('li#' + parent_li.attr('id') + ' a.acomment-reply span').html() - ( 1 + child_count ) );
    410415                }
    411416            });
Note: See TracChangeset for help on using the changeset viewer.