Skip to:
Content

BuddyPress.org

Changeset 2436


Ignore:
Timestamp:
01/24/2010 10:53:59 PM (16 years ago)
Author:
apeatling
Message:

Moving hash url detection out of filter function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/global.js

    r2434 r2436  
    77
    88    /* Activity */
    9     if ( j('div.activity').length && !j('div.activity').hasClass('no-ajax') )
    10         bp_activity_request( j.cookie('bp-activity-scope'), j.cookie('bp-activity-filter') );
     9    if ( j('div.activity').length && !j('div.activity').hasClass('no-ajax') ) {
     10        /* If there's a hash URL, try and use it. */
     11        if ( location.hash.length )
     12            var scope = location.hash.substr( 1, location.hash.length - 2 );
     13        else
     14            var scope = j.cookie('bp-activity-scope');
     15
     16        bp_activity_request( scope, j.cookie('bp-activity-filter') );
     17    }
    1118
    1219    /* Members */
     
    251258        if ( null == filter )
    252259            var filter = '-1';
    253 
    254         /* If there's a hash URL, try and use it. */
    255         if ( location.hash.length )
    256             var scope = location.hash.substr( 1, location.hash.length - 2 );
    257260
    258261        /* Save the type and filter to a session cookie */
Note: See TracChangeset for help on using the changeset viewer.