From e483796c85ac0082a69b9a7384363298339f0da0 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 30 Mar 2022 11:36:35 +0200 Subject: [PATCH] add field to filter user list --- views/bootstrap/class.UserList.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.UserList.php b/views/bootstrap/class.UserList.php index 4d90c3860..5ca7b3a05 100644 --- a/views/bootstrap/class.UserList.php +++ b/views/bootstrap/class.UserList.php @@ -31,6 +31,20 @@ */ class SeedDMS_View_UserList extends SeedDMS_Theme_Style { + function js() { /* {{{ */ + header('Content-Type: application/javascript; charset=UTF-8'); +?> + $(document).ready(function(){ + $("#myInput").on("keyup", function() { + var value = $(this).val().toLowerCase(); + $("#myTable tbody tr").filter(function() { + $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) + }); + }); + }); +params['dms']; $user = $this->params['user']; @@ -48,8 +62,9 @@ class SeedDMS_View_UserList extends SeedDMS_Theme_Style { $sessionmgr = new SeedDMS_SessionMgr($dms->getDB()); ?> - - + +
+ isDisabled() ? " class=\"error\"" : "").">";