1
0
mirror of synced 2024-11-26 06:46:04 +03:00
This commit is contained in:
Igor Vaynberg 2012-09-17 19:34:50 -07:00
parent bdd746844d
commit 2cb435680b

View File

@ -1216,8 +1216,12 @@
} }
} }
if (search.val().length < opts.minimumInputLength && checkFormatter(opts.formatInputTooShort, "formatInputTooShort")) { if (search.val().length < opts.minimumInputLength) {
render("<li class='select2-no-results'>" + opts.formatInputTooShort(search.val(), opts.minimumInputLength) + "</li>"); if (checkFormatter(opts.formatInputTooShort, "formatInputTooShort")) {
render("<li class='select2-no-results'>" + opts.formatInputTooShort(search.val(), opts.minimumInputLength) + "</li>");
} else {
render("");
}
return; return;
} }
else { else {