#6288 closed defect (bug) (no action required)
Missing javascript files when composing private messages
Reported by: | defunctlife | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | normal | Version: | 2.2.1 |
Component: | Messages | Keywords: | |
Cc: |
Description
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' );
Change History (4)
Note: See
TracTickets for help on using
tickets.
Nevermind, I had theme code that was forcing the scripts to the footer and since they moved it was unable to find them anymore.