Skip to:
Content

BuddyPress.org

Changeset 11853


Ignore:
Timestamp:
02/10/2018 02:33:22 PM (7 years ago)
Author:
hnla
Message:

Nouveau: Update activity post form Ajax response

In 11825 act loops were refactored to ensure only act entries passed to 'UL' construct, and not single items e.g template messages.

Overlooked was the post form Ajax response injecting direct to the div parent and now rendering 'LI' elements outside the 'UL'.

This commit updates the inject path to ensure content is 'prepended' to the added 'ul.activity-list' not parent '#activity-stream'

Props boonebgorges

Fixes #7688

File:
1 edited

Legend:

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

    r11686 r11853  
    713713
    714714                    if ( ! $( '#activity-' + response.id  ).length ) {
    715                         bp.Nouveau.inject( '#activity-stream', response.activity, 'prepend' );
     715                        bp.Nouveau.inject( '#activity-stream ul.activity-list', response.activity, 'prepend' );
    716716                        prepended = true;
    717717                    }
Note: See TracChangeset for help on using the changeset viewer.