Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

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

Missing javascript files when composing private messages

Reported by: defunctlife Owned by:
Priority: high Milestone:
Component: Messages Version: 2.2.1
Severity: normal 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
12 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

#2 @defunctlife
12 years ago

  • Resolution invalid
  • Status closedreopened

#3 @defunctlife
12 years ago

  • Resolutioninvalid
  • Status reopenedclosed

#4 @defunctlife
12 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.