Skip to:
Content

BuddyPress.org

Changeset 10447


Ignore:
Timestamp:
01/12/2016 04:25:28 PM (4 years ago)
Author:
boonebgorges
Message:

Ensure that Messages autocomplete selections result in valid HTML.

Previously, clicking a suggested user would result in a new <li> element
being nested inside of an existing <li>, rather than placed alongside.

Fixes #6820.

File:
1 edited

Legend:

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

    r10446 r10447  
    5959            var v = '<li class="'+f+'" id="un-'+un+'"><span><a href="'+l+'">'+d[0]+'</a></span> <span class="p">X</span></li>';
    6060
    61             var x = jQuery(settings.inputClass,tmp).before(v);
     61            var x = jQuery(settings.inputClass,tmp).closest('li').before(v);
    6262            jQuery('#send-to-usernames').addClass(un);
    6363
Note: See TracChangeset for help on using the changeset viewer.