Skip to:
Content

BuddyPress.org

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#6288 closed defect (bug) (no action required)

Missing javascript files when composing private messages

Reported by: defunctlife's profile 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)

#1 @defunctlife
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

#2 @defunctlife
10 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

#3 @defunctlife
10 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed

#4 @defunctlife
10 years ago

Nevermind, I had theme code that was forcing the scripts to the footer and since they moved it was unable to find them anymore.

Note: See TracTickets for help on using tickets.