diff --git a/settings/js/users.js b/settings/js/users.js index c1a52ef9bee..4609a56b494 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -622,12 +622,12 @@ $(document).ready(function () { }); // Implements User Search $('#usersearchform input').keyup(function() { - var inputVal = $(this).val(); - $('table tbody tr td.name').each(function() { - if ($('table tbody tr').text().search(new RegExp(inputVal, "i")) < 0) { - $('table tbody tr').fadeOut(); + var inputVal = $(this).val(), regex = new RegExp(inputVal, "i");; + $('table tbody tr td.name').each(function (key,element) { + if (regex.test($(element).text())) { + $(element).parent().show(); } else { - $('table tbody tr').show(); + $(element).parent().hide(); } }); }); diff --git a/settings/templates/users.php b/settings/templates/users.php index 89c83c3bd41..ec9ca074164 100644 --- a/settings/templates/users.php +++ b/settings/templates/users.php @@ -107,8 +107,7 @@ $_['subadmingroups'] = array_flip($items);
- - +