[buddypress-trac] [BuddyPress Trac] #6288: Missing javascript files when composing private messages

buddypress-trac noreply at wordpress.org
Tue Mar 10 11:07:21 UTC 2015


#6288: Missing javascript files when composing private messages
-----------------------------------+-----------------------------
 Reporter:  defunctlife            |      Owner:
     Type:  defect (bug)           |     Status:  new
 Priority:  high                   |  Milestone:  Awaiting Review
Component:  Component - Messaging  |    Version:  2.2.1
 Severity:  normal                 |   Keywords:
-----------------------------------+-----------------------------
 I believe since 2.1 and up to 2.2.1 the javascript that allows
 autocompletion when typing out of friend's names is missing from
 Buddypress. The files just stop being included in the zip for some reason
 and that component is broken.

 the folder bp-messages/js/ is empty but bp-messages/bp-messages-cssjs.php
 contains the loading of these files:


 {{{
 /**
  * Enqueue the JS for messages autocomplete.
  */
 function messages_add_autocomplete_js() {

         // Include the autocomplete JS for composing a message.
         if ( bp_is_messages_component() && bp_is_current_action( 'compose'
 ) ) {
                 add_action( 'wp_head',
 'messages_autocomplete_init_jsblock' );

                 wp_enqueue_script( 'bp-jquery-autocomplete' );
                 wp_enqueue_script( 'bp-jquery-autocomplete-fb' );
                 wp_enqueue_script( 'bp-jquery-bgiframe' );
                 wp_enqueue_script( 'bp-jquery-dimensions' );
         }
 }
 add_action( 'bp_enqueue_scripts', 'messages_add_autocomplete_js' );
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6288>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list