diff --git src/bp-templates/bp-nouveau/includes/members/template-tags.php src/bp-templates/bp-nouveau/includes/members/template-tags.php
index bb80e31a8..d9ebea087 100644
|
|
|
function bp_nouveau_members_loop_buttons( $args = array() ) {
|
| 456 | 456 | 'class' => $parent_class, |
| 457 | 457 | ), |
| 458 | 458 | 'button_attr' => array( |
| 459 | | 'href' => trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() ) . '#compose?r=' . bp_core_get_username( $user_id ), |
| | 459 | 'href' => trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() ) . 'compose?r=' . bp_core_get_username( $user_id ), |
| 460 | 460 | 'id' => false, |
| 461 | 461 | 'class' => $button_args['link_class'], |
| 462 | 462 | 'rel' => '', |
diff --git src/bp-templates/bp-nouveau/js/buddypress-messages.js src/bp-templates/bp-nouveau/js/buddypress-messages.js
index 8e5c58a6e..f6a222a3b 100644
|
|
|
window.bp = window.bp || {};
|
| 530 | 530 | }, |
| 531 | 531 | |
| 532 | 532 | addMentions: function() { |
| | 533 | var sendToInput = $( this.el ).find( '#send-to-input' ), |
| | 534 | mention = bp.Nouveau.getLinkParams( null, 'r' ) || null; |
| | 535 | |
| 533 | 536 | // Add autocomplete to send_to field |
| 534 | | $( this.el ).find( '#send-to-input' ).bp_mentions( { |
| | 537 | sendToInput.bp_mentions( { |
| 535 | 538 | data: [], |
| 536 | 539 | suffix: ' ' |
| 537 | 540 | } ); |
| | 541 | |
| | 542 | // Check for mention |
| | 543 | if ( ! _.isNull( mention ) ) { |
| | 544 | sendToInput.val( '@' + _.escape( mention ) + ' ' ); |
| | 545 | sendToInput.focus(); |
| | 546 | } |
| 538 | 547 | }, |
| 539 | 548 | |
| 540 | 549 | resetFields: function( model ) { |