Skip to:
Content

BuddyPress.org

Changeset 10826


Ignore:
Timestamp:
05/29/2016 08:12:13 PM (4 years ago)
Author:
boonebgorges
Message:

Namespace bp-message autocomplete script.

Registering our legacy bp-message autocomplete script as jQuery.fn.autocomplete
means that we are incompatible with other, more common autocomplete scripts,
such as the one loaded with wp_editor().

Fixes #4824.

Location:
trunk/src/bp-messages/js/autocomplete
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/js/autocomplete/jquery.autocomplete.js

    r9819 r10826  
    1010 * Revision: $Id: jquery.autocomplete.js 4485 2008-01-20 13:52:47Z joern.zaefferer $
    1111 *
     12 * Namespaced for BuddyPress as $.fn.autocompletebp, to avoid conflicts with other autocomplete scripts.
    1213 */
    1314
     
    1516
    1617$.fn.extend({
    17     autocomplete: function(urlOrData, options) {
     18    autocompletebp: function(urlOrData, options) {
    1819        var isUrl = typeof urlOrData == "string";
    1920        options = $.extend({}, $.Autocompleter.defaults, {
  • trunk/src/bp-messages/js/autocomplete/jquery.autocompletefb.js

    r10634 r10826  
    4747    });
    4848
    49     jQuery(settings.inputClass,tmp).autocomplete(settings.urlLookup,settings.acOptions);
     49    jQuery(settings.inputClass,tmp).autocompletebp(settings.urlLookup,settings.acOptions);
    5050    jQuery(settings.inputClass,tmp).result(function(e,d,f){
    5151        var f = settings.foundClass.replace(/\./,'');
Note: See TracChangeset for help on using the changeset viewer.