tweak formatSelection for #400
This commit is contained in:
parent
c098f51905
commit
bdd746844d
@ -2059,8 +2059,10 @@
|
|||||||
val = this.getVal(),
|
val = this.getVal(),
|
||||||
formatted;
|
formatted;
|
||||||
|
|
||||||
formatted=this.opts.formatSelection(data, choice);
|
formatted=this.opts.formatSelection(data, choice.find("div"));
|
||||||
|
if (formatted != undefined) {
|
||||||
choice.find("div").replaceWith("<div>"+this.opts.escapeMarkup(formatted)+"</div>");
|
choice.find("div").replaceWith("<div>"+this.opts.escapeMarkup(formatted)+"</div>");
|
||||||
|
}
|
||||||
choice.find(".select2-search-choice-close")
|
choice.find(".select2-search-choice-close")
|
||||||
.bind("mousedown", killEvent)
|
.bind("mousedown", killEvent)
|
||||||
.bind("click dblclick", this.bind(function (e) {
|
.bind("click dblclick", this.bind(function (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user