Changeset 2660
- Timestamp:
- 02/11/2010 10:54:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/global.js
r2644 r2660 403 403 } else { 404 404 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 }); 405 410 comment_li.fadeOut(200); 406 411 407 412 /* Decrease the "Reply (X)" button count */ 408 413 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 + child ren.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 ) ); 410 415 } 411 416 });
Note: See TracChangeset
for help on using the changeset viewer.