From ab320c9ecc21e0e27e052afff675d54243abc05b Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sat, 4 May 2024 12:22:10 +0200 Subject: [PATCH] WebUIs: remove regex search The default DataTables2 search is easier for end users Signed-off-by: Nicola Murino --- templates/webadmin/admins.html | 2 +- templates/webadmin/connections.html | 2 +- templates/webadmin/defender.html | 2 +- templates/webadmin/eventactions.html | 2 +- templates/webadmin/eventrules.html | 2 +- templates/webadmin/folders.html | 2 +- templates/webadmin/groups.html | 2 +- templates/webadmin/roles.html | 2 +- templates/webadmin/users.html | 2 +- templates/webclient/files.html | 2 +- templates/webclient/shares.html | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/templates/webadmin/admins.html b/templates/webadmin/admins.html index e650fa4d..a7c8f88c 100644 --- a/templates/webadmin/admins.html +++ b/templates/webadmin/admins.html @@ -445,7 +445,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). filterSearch.off("keyup"); filterSearch.on('keyup', function (e) { dt.rows().deselect(); - dt.search(e.target.value, true, false).draw(); + dt.search(e.target.value).draw(); }); handleColVisibilityCheckbox($('#checkColStatus'), 1); handleColVisibilityCheckbox($('#checkColLastLogin'), 2); diff --git a/templates/webadmin/connections.html b/templates/webadmin/connections.html index 10406a44..116cf002 100644 --- a/templates/webadmin/connections.html +++ b/templates/webadmin/connections.html @@ -344,7 +344,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). filterSearch.off("keyup"); filterSearch.on('keyup', function (e) { dt.rows().deselect(); - dt.search(e.target.value, true, false).draw(); + dt.search(e.target.value).draw(); }); } diff --git a/templates/webadmin/defender.html b/templates/webadmin/defender.html index 2a553d99..777bf8c4 100644 --- a/templates/webadmin/defender.html +++ b/templates/webadmin/defender.html @@ -253,7 +253,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). filterSearch.off("keyup"); filterSearch.on('keyup', function (e) { dt.rows().deselect(); - dt.search(e.target.value, true, false).draw(); + dt.search(e.target.value).draw(); }); } diff --git a/templates/webadmin/eventactions.html b/templates/webadmin/eventactions.html index 1475eff1..3a24fe98 100644 --- a/templates/webadmin/eventactions.html +++ b/templates/webadmin/eventactions.html @@ -293,7 +293,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). filterSearch.off("keyup"); filterSearch.on('keyup', function (e) { dt.rows().deselect(); - dt.search(e.target.value, true, false).draw(); + dt.search(e.target.value).draw(); }); } diff --git a/templates/webadmin/eventrules.html b/templates/webadmin/eventrules.html index 7b1a22b7..a5310263 100644 --- a/templates/webadmin/eventrules.html +++ b/templates/webadmin/eventrules.html @@ -353,7 +353,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). filterSearch.off("keyup"); filterSearch.on('keyup', function (e) { dt.rows().deselect(); - dt.search(e.target.value, true, false).draw(); + dt.search(e.target.value).draw(); }); } diff --git a/templates/webadmin/folders.html b/templates/webadmin/folders.html index eed87bdc..31627169 100644 --- a/templates/webadmin/folders.html +++ b/templates/webadmin/folders.html @@ -369,7 +369,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). filterSearch.off("keyup"); filterSearch.on('keyup', function (e) { dt.rows().deselect(); - dt.search(e.target.value, true, false).draw(); + dt.search(e.target.value).draw(); }); handleColVisibilityCheckbox($('#checkColStorage'), 1); handleColVisibilityCheckbox($('#checkColQuota'), 2); diff --git a/templates/webadmin/groups.html b/templates/webadmin/groups.html index 4c1271d1..ca7a9de7 100644 --- a/templates/webadmin/groups.html +++ b/templates/webadmin/groups.html @@ -302,7 +302,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). filterSearch.off("keyup"); filterSearch.on('keyup', function (e) { dt.rows().deselect(); - dt.search(e.target.value, true, false).draw(); + dt.search(e.target.value).draw(); }); handleColVisibilityCheckbox($('#checkColMembers'), 1); handleColVisibilityCheckbox($('#checkColDesc'), 2); diff --git a/templates/webadmin/roles.html b/templates/webadmin/roles.html index 20c487cd..8b776043 100644 --- a/templates/webadmin/roles.html +++ b/templates/webadmin/roles.html @@ -303,7 +303,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). filterSearch.off("keyup"); filterSearch.on('keyup', function (e) { dt.rows().deselect(); - dt.search(e.target.value, true, false).draw(); + dt.search(e.target.value).draw(); }); handleColVisibilityCheckbox($('#checkColMembers'), 1); handleColVisibilityCheckbox($('#checkColDesc'), 2); diff --git a/templates/webadmin/users.html b/templates/webadmin/users.html index a0b1b773..8245b315 100644 --- a/templates/webadmin/users.html +++ b/templates/webadmin/users.html @@ -626,7 +626,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). filterSearch.off("keyup"); filterSearch.on('keyup', function (e) { dt.rows().deselect(); - dt.search(e.target.value, true, false).draw(); + dt.search(e.target.value).draw(); }); handleColVisibilityCheckbox($('#checkColStatus'), 1); handleColVisibilityCheckbox($('#checkColLastLogin'), 2); diff --git a/templates/webclient/files.html b/templates/webclient/files.html index f3ad0c24..26c55fc1 100644 --- a/templates/webclient/files.html +++ b/templates/webclient/files.html @@ -1032,7 +1032,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). filterSearch.off("keyup"); filterSearch.on('keyup', function (e) { dt.rows().deselect(); - dt.search(e.target.value, true, false).draw(); + dt.search(e.target.value).draw(); }); } diff --git a/templates/webclient/shares.html b/templates/webclient/shares.html index 3f314279..d5e1a2bb 100644 --- a/templates/webclient/shares.html +++ b/templates/webclient/shares.html @@ -432,7 +432,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). filterSearch.off("keyup"); filterSearch.on('keyup', function (e) { dt.rows().deselect(); - dt.search(e.target.value, true, false).draw(); + dt.search(e.target.value).draw(); }); }