Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/06/2013 12:49:35 AM (13 years ago)
Author:
boonebgorges
Message:

Update 'Show all x comments' count after creating or deleting activity comments

On activity permalink pages, the comment list is collapsed if the item has more
than 6 responses, and a link is appended that reads 'Show all x comments'. This
changeset introduces additional JavaScript to update this count when a new
activity comment is created, or an existing one is deleted, via AJAX.

In the process of making the change, the logic for constructing the 'Show all
x comments' string was changed, so that it's now properly translatable.

Also cached a JS variable that was being used many times, to avoid unnecessary
DOM traversal.

Fixes #4844

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r6726 r7002  
    160160        'rejected'          => __( 'Rejected', 'buddypress' ),
    161161        'show_all_comments' => __( 'Show all comments for this thread', 'buddypress' ),
     162        'show_x_comments'   => __( 'Show all %d comments', 'buddypress' ),
    162163        'show_all'          => __( 'Show all', 'buddypress' ),
    163164        'comments'          => __( 'comments', 'buddypress' ),
Note: See TracChangeset for help on using the changeset viewer.