diff --git src/bp-templates/bp-nouveau/js/buddypress-nouveau.js src/bp-templates/bp-nouveau/js/buddypress-nouveau.js
index 0fbf99664..acd9b8d04 100644
|
|
window.bp = window.bp || {}; |
367 | 367 | } |
368 | 368 | |
369 | 369 | if ( $( '#buddypress [data-bp-filter="' + object + '"]' ).length ) { |
370 | | if ( '-1' !== $( '#buddypress [data-bp-filter="' + object + '"]' ).val() && '0' !== $( '#buddypress [data-bp-filter="' + object + '"]' ).val() ) { |
371 | | filter = $( '#buddypress [data-bp-filter="' + object + '"]' ).val(); |
372 | | } else if ( undefined !== objectData.filter ) { |
373 | | filter = objectData.filter, |
| 370 | if ( undefined !== objectData.filter ) { |
| 371 | filter = objectData.filter; |
374 | 372 | $( '#buddypress [data-bp-filter="' + object + '"] option[value="' + filter + '"]' ).prop( 'selected', true ); |
| 373 | } else if ( '-1' !== $( '#buddypress [data-bp-filter="' + object + '"]' ).val() && '0' !== $( '#buddypress [data-bp-filter="' + object + '"]' ).val() ) { |
| 374 | filter = $( '#buddypress [data-bp-filter="' + object + '"]' ).val(); |
375 | 375 | } |
376 | 376 | } |
377 | 377 | |