Skip to:
Content

BuddyPress.org

Changeset 9353


Ignore:
Timestamp:
01/13/2015 09:09:30 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Ajax search in private message inbox/sentbox has been broken since r9240. We fix it here by modifying the JS in bp-legacy to accommodate both DOM scenarios, and include the option of using button instead of input (which can likely happen in other areas over time, also.)

Props r-a-y, hnla. Fixes #6116.

File:
1 edited

Legend:

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

    r9308 r9353  
    13581358    /** Private Messaging ******************************************/
    13591359
    1360     /** Message search*/
     1360    /** Message search */
    13611361    jq('.message-search').on( 'click', function(event) {
    13621362        if ( jq(this).hasClass('no-ajax') ) {
     
    13671367            object;
    13681368
    1369         if ( target.attr('type') === 'submit' ) {
    1370             //var css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' );
     1369        if ( target.attr('type') === 'submit' || target.attr('type') === 'button' ) {
    13711370            object = 'messages';
    13721371
    1373             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') );
     1372            bp_filter_request(
     1373                object,
     1374                jq.cookie('bp-' + object + '-filter'),
     1375                jq.cookie('bp-' + object + '-scope'),
     1376                'div.' + object, jq('#messages_search').val(),
     1377                1,
     1378                jq.cookie('bp-' + object + '-extras')
     1379            );
    13741380
    13751381            return false;
Note: See TracChangeset for help on using the changeset viewer.