Ticket #5077: 5077.diff
File 5077.diff, 1.9 KB (added by , 12 years ago) |
---|
-
bp-themes/bp-default/_inc/global.js
1008 1008 jq(parentdiv).fadeOut(200, 1009 1009 function() { 1010 1010 parentdiv.fadeIn(200).html(response); 1011 // hidden groups slide up 1012 if( thelink.hasClass( 'leave-group' ) && parentdiv.hasClass( 'hidden' ) ) 1013 parentdiv.parent().parent().slideUp( 200 ); 1011 1014 } 1012 1015 ); 1013 1016 } -
bp-templates/bp-legacy/js/buddypress.js
1037 1037 jq(parentdiv).fadeOut(200, 1038 1038 function() { 1039 1039 parentdiv.fadeIn(200).html(response); 1040 // hidden groups slide up 1041 if( thelink.hasClass( 'leave-group' ) && parentdiv.hasClass( 'hidden' ) ) 1042 parentdiv.parent().parent().slideUp( 200 ); 1040 1043 } 1041 1044 ); 1042 1045 } -
bp-groups/bp-groups-actions.php
258 258 bp_core_add_message( __( 'There was an error leaving the group.', 'buddypress' ), 'error' ); 259 259 else 260 260 bp_core_add_message( __( 'You successfully left the group.', 'buddypress' ) ); 261 262 $redirect = bp_get_group_permalink( $bp->groups->current_group ); 263 264 if( 'hidden' == $bp->groups->current_group->status ) 265 $redirect = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ); 261 266 262 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ));267 bp_core_redirect( $redirect ); 263 268 } 264 269 265 270 bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );