Skip to:
Content

BuddyPress.org

Ticket #5679: search_term_fetching.patch

File search_term_fetching.patch, 764 bytes (added by dcavins, 10 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 ac69597..08da83c 100644
    jq(document).ready( function() { 
    844844
    845845                        scope = css_id[1];
    846846                        filter = jq('#' + object + '-order-select select').val();
    847                         search_terms = jq('#' + object + '_search').val();
     847                        if ( ! filter ) {
     848                                filter = jq('div.item-list-tabs li.filter select').val();
     849                        }
     850                        search_terms = false;
     851                        if ( jq('.dir-search input').length ) {
     852                                search_terms = jq('.dir-search input').val();
     853                        }
    848854
    849855                        bp_filter_request( object, filter, scope, 'div.' + object, search_terms, 1, jq.cookie('bp-' + object + '-extras') );
    850856