messages_add_autocomplete_js

Enqueue the JS for messages autocomplete.

Description

messages_add_autocomplete_js(); 

Usage

  1. if ( !function_exists( 'messages_add_autocomplete_js' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-messages/bp-messages-cssjs.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = messages_add_autocomplete_js(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-messages/bp-messages-cssjs.php  
  1. function messages_add_autocomplete_js() { 
  2.  
  3. // Include the autocomplete JS for composing a message. 
  4. if ( bp_is_messages_component() && bp_is_current_action( 'compose' ) ) { 
  5.  
  6. $url =buddypress)->plugin_url . 'bp-messages/js/'; 
  7.  
  8. wp_enqueue_script( 'bp-jquery-autocomplete', "{$url}autocomplete/jquery.autocomplete{$min}.js", array( 'jquery' ), bp_get_version() ); 
  9. wp_enqueue_script( 'bp-jquery-autocomplete-fb', "{$url}autocomplete/jquery.autocompletefb{$min}.js", array( 'jquery' ), bp_get_version() ); 
  10. wp_enqueue_script( 'bp-jquery-bgiframe', "{$url}autocomplete/jquery.bgiframe{$min}.js", array( 'jquery' ), bp_get_version() ); 
  11. wp_enqueue_script( 'bp-jquery-dimensions', "{$url}autocomplete/jquery.dimensions{$min}.js", array( 'jquery' ), bp_get_version() );