Ticket #6844: 6844.ajax.patch
File 6844.ajax.patch, 1.2 KB (added by , 8 years ago) |
---|
-
src/bp-templates/bp-legacy/js/buddypress.js
847 847 } 848 848 849 849 var target = jq(event.target), 850 css_id, object, template ;850 css_id, object, template, search_terms; 851 851 852 852 if ( target.attr('type') === 'submit' ) { 853 853 css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' ); 854 854 object = css_id[0]; 855 855 template = null; 856 search_terms = target.parent().find( '#' + object + '_search' ).val(); 856 857 857 858 // The Group Members page specifies its own template 858 859 if ( event.currentTarget.className === 'groups-members-search' ) { … … 860 861 template = 'groups/single/members'; 861 862 } 862 863 863 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 );864 bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope') , 'div.' + object, search_terms, 1, jq.cookie('bp-' + object + '-extras'), null, template ); 864 865 865 866 return false; 866 867 }