1
0
mirror of synced 2024-11-23 05:26:10 +03:00

make search work with chinese/japanese imes. fixes #814

This commit is contained in:
Igor Vaynberg 2013-02-07 16:17:44 -08:00
parent 275e094dff
commit 3ec535ec5b

View File

@ -601,7 +601,7 @@ the specific language governing permissions and limitations under the Apache Lic
} }
installKeyUpChangeEvent(search); installKeyUpChangeEvent(search);
search.bind("keyup-change", this.bind(this.updateResults)); search.bind("keyup-change input", this.bind(this.updateResults));
search.bind("focus", function () { search.addClass("select2-focused"); if (search.val() === " ") 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");});