Ticket #2151: globaljs.patch
File globaljs.patch, 2.0 KB (added by , 15 years ago) |
---|
-
bp-themes/bp-default/_inc/global.js
1 1 // AJAX Functions 2 var j = jQuery;3 2 4 3 // Global variable to prevent multiple AJAX requests 5 4 var bp_ajax_request = null; 6 5 7 6 j(document).ready( function() { 7 var j = jQuery; 8 8 /**** Page Load Actions *******************************************************/ 9 9 10 10 /* Hide Forums Post Form */ … … 1042 1042 1043 1043 /* Setup activity scope and filter based on the current cookie settings. */ 1044 1044 function bp_init_activity() { 1045 var j = jQuery; 1045 1046 /* Reset the page */ 1046 1047 j.cookie( 'bp-activity-oldestpage', 1, {path: '/'} ); 1047 1048 … … 1059 1060 1060 1061 /* Setup object scope and filter based on the current cookie settings for the object. */ 1061 1062 function bp_init_objects(objects) { 1063 var j = jQuery; 1062 1064 j(objects).each( function(i) { 1063 1065 if ( null != j.cookie('bp-' + objects[i] + '-filter') && j('li#' + objects[i] + '-order-select select').length ) 1064 1066 j('li#' + objects[i] + '-order-select select option[value=' + j.cookie('bp-' + objects[i] + '-filter') + ']').attr( 'selected', 'selected' ); … … 1074 1076 1075 1077 /* Filter the current content list (groups/members/blogs/topics) */ 1076 1078 function bp_filter_request( object, filter, scope, target, search_terms, page, extras ) { 1079 var j = jQuery; 1077 1080 if ( 'activity' == object ) 1078 1081 return false; 1079 1082 … … 1124 1127 1125 1128 /* Activity Loop Requesting */ 1126 1129 function bp_activity_request(scope, filter) { 1130 var j = jQuery; 1127 1131 /* Save the type and filter to a session cookie */ 1128 1132 j.cookie( 'bp-activity-scope', scope, {path: '/'} ); 1129 1133 j.cookie( 'bp-activity-filter', filter, {path: '/'} ); … … 1174 1178 1175 1179 /* Hide long lists of activity comments, only show the latest five root comments. */ 1176 1180 function bp_dtheme_hide_comments() { 1181 var j = jQuery; 1177 1182 var comments_divs = j('div.activity-comments'); 1178 1183 1179 1184 if ( !comments_divs.length )