This topic has 4 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #209204
     phenderson57
    Participant

    I’m using BuddyApp 1.5.7. We are having a problem on the BuddyPress Group search page on Safari that we have traced to an issue with target attribute. For other browsers this works OK, but not safari.

    The problem is if you go to the /groups page and use the standard groups search bar to search for a group name keyword, we find that on Safari the first page comes up correctly and the pagination shows the correct number of response pages (e.g. 1-4). However if we then go to click on page 2 of the response pages to get the second batch of search responses, then the search results disappear and the page 2 is replaced by the general group page instead with the total group pagination (e.g 1-55). So if you have a group search result that spans several pages, you can only access the first page of search results.

    Our developers looked into this and are finding that the theme is unable to recognize target attribute on safari in a particular directory search code module below.

    Can you please take a look? You can emailĀ  my developer atĀ milind.more@rtcamp.com or me at paul@myharbors.com with further questions.

    We believe the problem is at this line:

    `if ( target.attr(‘type’) === ‘submit’ ) {`

    in this code module:

    /* The search form on all directory pages */

    jq( ‘.dir-search, .groups-members-search’ ).on( ‘click’, function(event) {

    if ( jq(this).hasClass(‘no-ajax’) ) {

    return;

    }

     

    var target = jq(event.target),

    css_id, object, template;

     

    if ( target.attr(‘type’) === ‘submit’ ) {

    css_id = jq(‘.item-list-tabs li.selected’).attr(‘id’).split( ‘-‘ );

    object = css_id[0];

    template = null;

     

    // The Group Members page specifies its own template

    if ( event.currentTarget.className === ‘groups-members-search’ ) {

    object = ‘group_members’;

    template = ‘groups/single/members’;

    }

     

    bp_filter_request( object, jq.cookie(‘bp-‘ + object + ‘-filter’), jq.cookie(‘bp-‘ + object + ‘-scope’) , ‘div.’ + object, target.parent().children(‘label’).children(‘input’).val(), 1, jq.cookie(‘bp-‘ + object + ‘-extras’), null, template );

     

    return false;

    }

    });

    #209260
     Laura
    Moderator
    Not marked as solution
    #209317
     Radu
    Moderator
    Not marked as solution
    #209320
     phenderson57
    Participant
    Not marked as solution
    #209427
     Radu
    Moderator
    Not marked as solution
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?