Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/06/2014 02:50:45 PM (8 years ago)
Author:
boonebgorges
Message:

Introduce pagination for Send Invites page in single groups

For better support for up-to-date pagination, the AJAX for group invitations
now refreshes the entire invitation section, rather than simply adding single
items to/removing single items from the DOM. This change requires a new
template, groups/single/invite-loop.php, which is the item loaded by the AJAX
request. Backward compatibility with bp-default-style themes is maintained in
the JS.

Fixes #5423

Props dcavins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress-functions.php

    r8052 r8063  
    140140            'members_filter'  => 'bp_legacy_theme_object_template_loader',
    141141            'messages_filter' => 'bp_legacy_theme_messages_template_loader',
     142            'invite_filter'   => 'bp_legacy_theme_invite_template_loader',
    142143
    143144            // Friends
     
    602603
    603604/**
     605 * Load group invitations loop to handle pagination requests sent via AJAX.
     606 *
     607 * @since BuddyPress (2.0.0)
     608 */
     609function bp_legacy_theme_invite_template_loader() {
     610    bp_get_template_part( 'groups/single/invites-loop' );
     611    exit();
     612}
     613
     614/**
    604615 * Load the activity loop template when activity is requested via AJAX,
    605616 *
Note: See TracChangeset for help on using the changeset viewer.