diff options
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/users.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 8107a98df0b..c1a52ef9bee 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -620,6 +620,17 @@ $(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(); + } else { + $('table tbody tr').show(); + } + }); + }); // Handle undo notifications OC.Notification.hide(); |