Skip to:
Content

BuddyPress.org

Ticket #2151: globaljs.patch

File globaljs.patch, 2.0 KB (added by andrew_s1, 15 years ago)
  • bp-themes/bp-default/_inc/global.js

     
    11// AJAX Functions
    2 var j = jQuery;
    32
    43// Global variable to prevent multiple AJAX requests
    54var bp_ajax_request = null;
    65
    76j(document).ready( function() {
     7        var j = jQuery;
    88        /**** Page Load Actions *******************************************************/
    99
    1010        /* Hide Forums Post Form */
     
    10421042
    10431043/* Setup activity scope and filter based on the current cookie settings. */
    10441044function bp_init_activity() {
     1045        var j = jQuery;
    10451046        /* Reset the page */
    10461047        j.cookie( 'bp-activity-oldestpage', 1, {path: '/'} );
    10471048
     
    10591060
    10601061/* Setup object scope and filter based on the current cookie settings for the object. */
    10611062function bp_init_objects(objects) {
     1063        var j = jQuery;
    10621064        j(objects).each( function(i) {
    10631065                if ( null != j.cookie('bp-' + objects[i] + '-filter') && j('li#' + objects[i] + '-order-select select').length )
    10641066                        j('li#' + objects[i] + '-order-select select option[value=' + j.cookie('bp-' + objects[i] + '-filter') + ']').attr( 'selected', 'selected' );
     
    10741076
    10751077/* Filter the current content list (groups/members/blogs/topics) */
    10761078function bp_filter_request( object, filter, scope, target, search_terms, page, extras ) {
     1079        var j = jQuery;
    10771080        if ( 'activity' == object )
    10781081                return false;
    10791082
     
    11241127
    11251128/* Activity Loop Requesting */
    11261129function bp_activity_request(scope, filter) {
     1130        var j = jQuery;
    11271131        /* Save the type and filter to a session cookie */
    11281132        j.cookie( 'bp-activity-scope', scope, {path: '/'} );
    11291133        j.cookie( 'bp-activity-filter', filter, {path: '/'} );
     
    11741178
    11751179/* Hide long lists of activity comments, only show the latest five root comments. */
    11761180function bp_dtheme_hide_comments() {
     1181        var j = jQuery;
    11771182        var comments_divs = j('div.activity-comments');
    11781183
    11791184        if ( !comments_divs.length )