Skip to:
Content

BuddyPress.org

Ticket #5960: 5960.01.patch

File 5960.01.patch, 742 bytes (added by imath, 11 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 1107c9f..91b8e65 100644
    jq(document).ready( function() { 
    940940
    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
    946950                        // The Group Members page has a different selector for