1
0
mirror of synced 2024-11-26 06:46:04 +03:00

added a little animation for removed multiselect choices

This commit is contained in:
Igor Vaynberg 2012-07-16 14:10:56 +03:00
parent 0c4888c6ef
commit 69758f0b71

View File

@ -1709,11 +1709,13 @@
.bind("click dblclick", this.bind(function (e) { .bind("click dblclick", this.bind(function (e) {
if (!this.enabled) return; if (!this.enabled) return;
$(e.target).closest(".select2-search-choice").fadeOut('fast').animate({width: "hide"}, 50, this.bind(function(){
this.unselect($(e.target)); this.unselect($(e.target));
this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"); this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
killEvent(e);
this.close(); this.close();
this.focusSearch(); this.focusSearch();
})).dequeue();
killEvent(e);
})).bind("focus", this.bind(function () { })).bind("focus", this.bind(function () {
if (!this.enabled) return; if (!this.enabled) return;
this.container.addClass("select2-container-active"); this.container.addClass("select2-container-active");