Skip to:
Content

BuddyPress.org

Ticket #6508: 6508.01.patch

File 6508.01.patch, 755 bytes (added by dcavins, 8 years ago)
  • src/bp-templates/bp-legacy/js/buddypress.js

    diff --git src/bp-templates/bp-legacy/js/buddypress.js src/bp-templates/bp-legacy/js/buddypress.js
    index 373d626..22b4958 100644
    jq(document).ready( function() { 
    815815                        css_id, object, template;
    816816
    817817                if ( target.attr('type') === 'submit' ) {
    818                         css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' );
     818                        // Find the correct object to pass into the filter request.
     819                        if ( jq('.item-list-tabs li.selected').length ) {
     820                                css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' );
     821                        } else {
     822                                css_id = jq('.item-list-tabs li:first').attr('id').split( '-' );
     823                        }
    819824                        object = css_id[0];
    820825                        template = null;
    821826