mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
minor fix
This commit is contained in:
parent
0223dd27c7
commit
9adb8bae1d
@ -2042,6 +2042,7 @@ $.fn.filterByText = function(textbox) {
|
||||
|
||||
$(textbox).bind("change keyup", function() {
|
||||
var search = $.trim($(textbox).val());
|
||||
var regex = new RegExp(search, "gi");
|
||||
|
||||
$(select)
|
||||
.find("option")
|
||||
@ -2049,7 +2050,7 @@ $.fn.filterByText = function(textbox) {
|
||||
if (
|
||||
$(this)
|
||||
.text()
|
||||
.includes(search.toLowerCase()) === true
|
||||
.match(regex) !== null
|
||||
) {
|
||||
$(this).show();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user