improve whitespace detection
This commit is contained in:
parent
83c11b27df
commit
9c4a4d1b8a
@ -476,7 +476,7 @@
|
|||||||
|
|
||||||
installKeyUpChangeEvent(search);
|
installKeyUpChangeEvent(search);
|
||||||
search.bind("keyup-change", this.bind(this.updateResults));
|
search.bind("keyup-change", this.bind(this.updateResults));
|
||||||
search.bind("focus", function () { search.addClass("select2-focused"); search.val(""); });
|
search.bind("focus", function () { search.addClass("select2-focused"); if (search.val() === " ") search.val(""); });
|
||||||
search.bind("blur", function () { search.removeClass("select2-focused");});
|
search.bind("blur", function () { search.removeClass("select2-focused");});
|
||||||
|
|
||||||
this.dropdown.delegate(resultsSelector, "click", this.bind(function (e) {
|
this.dropdown.delegate(resultsSelector, "click", this.bind(function (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user