diff --git a/select2.js b/select2.js index 0fe30dbc..11fa75d3 100755 --- a/select2.js +++ b/select2.js @@ -1736,20 +1736,17 @@ // multi addSelectedChoice: function (data) { - var choice=$("
  • "), + var choice=$( + "
  • " + + "
    " + + " " + + "
  • "), id = this.id(data), val = this.getVal(), formatted; - choice.find('.select2-tmp').replaceWith(this.opts.formatSelection(data)); - formatted=this.opts.formatSelection(data, choice); - if (formatted !== undefined) { - choice.append(formatted); - } - - choice.append(""); - + choice.find("div").replaceWith("
    "+formatted+"
    "); choice.find(".select2-search-choice-close") .bind("click dblclick", this.bind(function (e) { if (!this.enabled) return;