Skip to:
Content

BuddyPress.org

Changeset 12033


Ignore:
Timestamp:
05/01/2018 08:38:21 PM (8 years ago)
Author:
imath
Message:

BP Nouveau: Load older activities (load-more) in the same "ul" list.

The "ul" container of the activity stream loop needs to be exclude of paginated results to avoid having each page in a different container.

Fixes #7773

Location:
trunk/src/bp-templates/bp-nouveau
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/activity/activity-loop.php

    r11861 r12033  
    88<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
    99
    10         <ul class="activity-list item-list bp-list" >
     10        <?php if ( empty( $_POST['page'] ) || 1 === (int) $_POST['page'] ) : ?>
     11                <ul class="activity-list item-list bp-list">
     12        <?php endif; ?>
    1113
    1214        <?php
     
    2729        <?php endif; ?>
    2830
    29         </ul>
     31        <?php if ( empty( $_POST['page'] ) || 1 === (int) $_POST['page'] ) : ?>
     32                </ul>
     33        <?php endif; ?>
    3034
    3135<?php else : ?>
  • trunk/src/bp-templates/bp-nouveau/js/buddypress-activity.js

    r12016 r12033  
    297297                                        page                : next_page,
    298298                                        method              : 'append',
    299                                         exclude_just_posted : this.just_posted.join( ',' )
     299                                        exclude_just_posted : this.just_posted.join( ',' ),
     300                                        target              : '#buddypress [data-bp-list] ul.bp-list'
    300301                                } ).done( function( response ) {
    301302                                        if ( true === response.success ) {
Note: See TracChangeset for help on using the changeset viewer.