diff --git src/bp-core/bp-core-template.php src/bp-core/bp-core-template.php
index 9ac7a8a..b3bad7e 100644
|
|
function bp_the_body_class() { |
3312 | 3312 | if ( bp_is_user_activity() ) { |
3313 | 3313 | $bp_classes[] = 'my-activity'; |
3314 | 3314 | } |
| 3315 | } else { |
| 3316 | if ( bp_get_current_member_type() ) { |
| 3317 | $bp_classes[] = 'type'; |
| 3318 | } |
3315 | 3319 | } |
3316 | 3320 | |
3317 | 3321 | if ( bp_is_my_profile() ) { |
diff --git src/bp-templates/bp-legacy/js/buddypress.js src/bp-templates/bp-legacy/js/buddypress.js
index 7a4b0ca..d80e0d7 100644
|
|
jq(document).ready( function() { |
876 | 876 | |
877 | 877 | /* When a navigation tab is clicked - e.g. | All Groups | My Groups | */ |
878 | 878 | jq('div.item-list-tabs').on( 'click', function(event) { |
| 879 | // If on a directory page with a type filter, add no-ajax class. |
| 880 | if ( jq( 'body' ).hasClass( 'type' ) && jq( 'body' ).hasClass( 'directory' ) ) { |
| 881 | jq(this).addClass( 'no-ajax' ); |
| 882 | } |
| 883 | |
879 | 884 | if ( jq(this).hasClass('no-ajax') || jq( event.target ).hasClass('no-ajax') ) { |
880 | 885 | return; |
881 | 886 | } |