minor fix
This commit is contained in:
parent
0223dd27c7
commit
9adb8bae1d
|
@ -2042,6 +2042,7 @@ $.fn.filterByText = function(textbox) {
|
||||||
|
|
||||||
$(textbox).bind("change keyup", function() {
|
$(textbox).bind("change keyup", function() {
|
||||||
var search = $.trim($(textbox).val());
|
var search = $.trim($(textbox).val());
|
||||||
|
var regex = new RegExp(search, "gi");
|
||||||
|
|
||||||
$(select)
|
$(select)
|
||||||
.find("option")
|
.find("option")
|
||||||
|
@ -2049,7 +2050,7 @@ $.fn.filterByText = function(textbox) {
|
||||||
if (
|
if (
|
||||||
$(this)
|
$(this)
|
||||||
.text()
|
.text()
|
||||||
.includes(search.toLowerCase()) === true
|
.match(regex) !== null
|
||||||
) {
|
) {
|
||||||
$(this).show();
|
$(this).show();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue