Skip to:
Content

BuddyPress.org

Changeset 9201


Ignore:
Timestamp:
11/28/2014 06:54:34 PM (11 years ago)
Author:
imath
Message:

On members directory, make sure the AJAX search request is not using the default placeholder as search terms.

Fixes #5960

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/js/buddypress.js

    r9161 r9201  
    941941            // Search terms
    942942            if ( jq('div.dir-search input').length ) {
    943                 search_terms =  jq('.dir-search input').prop('placeholder') ? jq('.dir-search input').prop('placeholder') : jq('.dir-search input').val();
     943                search_terms =  jq('.dir-search input').val();
     944
     945                if ( ! search_terms && bp_get_querystring('s') ) {
     946                    search_terms = jq('.dir-search input').prop('placeholder');
     947                }
    944948            }
    945949
Note: See TracChangeset for help on using the changeset viewer.