Skip to:
Content

BuddyPress.org

Changeset 12014


Ignore:
Timestamp:
04/29/2018 04:01:02 PM (3 years ago)
Author:
imath
Message:

BP Nouveau: make sure the group members template is loaded when needed

Templates are loaded using Ajax requests triggered by the bp.Nouveau.objectRequest() function (buddypress-nouveau.js). For the group members specific screen, we need to set the template out of the object displayed (group_members) before resetting this object to members.

Fixes #7780

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/js/buddypress-nouveau.js

    r12002 r12014  
    256256
    257257            if ( 'friends' === data.object || 'group_members' === data.object ) {
    258                 data.object = 'members';
    259258                data.template = data.object;
     259                data.object   = 'members';
    260260            } else if ( 'group_requests' === data.object ) {
    261261                data.object = 'groups';
Note: See TracChangeset for help on using the changeset viewer.