Changeset 12249
- Timestamp:
- 10/11/2018 03:23:38 AM (6 years ago)
- Location:
- branches/3.0/src/bp-templates/bp-nouveau
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/src/bp-templates/bp-nouveau/includes/members/template-tags.php
r12157 r12249 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'], -
branches/3.0/src/bp-templates/bp-nouveau/js/buddypress-messages.js
r12157 r12249 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
Note: See TracChangeset
for help on using the changeset viewer.