Skip to:
Content

BuddyPress.org

Changeset 11887


Ignore:
Timestamp:
03/05/2018 11:10:35 AM (7 years ago)
Author:
djpaul
Message:

Templates, Legacy: don't set bp-activity-oldestpage until needed.

Fixes #7699

Props chherbst

File:
1 edited

Legend:

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

    r11763 r11887  
    438438            jq('#buddypress li.load-more').addClass('loading');
    439439
    440             if ( null === jq.cookie('bp-activity-oldestpage') ) {
     440            if ( ! jq.cookie('bp-activity-oldestpage') ) {
    441441                jq.cookie('bp-activity-oldestpage', 1, {
    442442                    path: '/',
     
    17391739/* Setup activity scope and filter based on the current cookie settings. */
    17401740function bp_init_activity() {
    1741     /* Reset the page */
    1742     jq.cookie( 'bp-activity-oldestpage', 1, {
    1743         path: '/',
    1744         secure: ( 'https:' === window.location.protocol )
    1745     } );
    1746 
    17471741    if ( undefined !== jq.cookie('bp-activity-filter') && jq('#activity-filter-select').length ) {
    17481742        jq('#activity-filter-select select option[value="' + jq.cookie('bp-activity-filter') + '"]').prop( 'selected', true );
Note: See TracChangeset for help on using the changeset viewer.