diff --git src/bp-templates/bp-legacy/js/buddypress.js src/bp-templates/bp-legacy/js/buddypress.js
index 6b85ed0..aa014e2 100644
|
|
jq(document).ready( function() { |
912 | 912 | jq('#buddypress').on( 'click', function(event) { |
913 | 913 | var target = jq(event.target), |
914 | 914 | el, |
915 | | css_id, object, search_terms, pagination_id, template, page_number, |
| 915 | css_id, object, search_terms, pagination_id, template, |
| 916 | url_parameters, page_number, |
916 | 917 | $gm_search, |
917 | 918 | caller; |
918 | 919 | |
… |
… |
jq(document).ready( function() { |
937 | 938 | pagination_id = jq(target).closest('.pagination-links').attr('id'); |
938 | 939 | template = null; |
939 | 940 | |
940 | | page_number = target.attr('href').split( '=' ); |
| 941 | url_parameters = target.attr('href').split( '&' ); |
| 942 | // The page number is the first parameter. |
| 943 | page_number = url_parameters[0].split( '=' ); |
941 | 944 | page_number = page_number[1]; |
942 | 945 | |
943 | 946 | // Search terms |