Skip to content

Commit

Permalink
WebUIs: remove regex search
Browse files Browse the repository at this point in the history
The default DataTables2 search is easier for end users

Signed-off-by: Nicola Murino <[email protected]>
  • Loading branch information
drakkan committed May 4, 2024
1 parent 76c9120 commit ab320c9
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion templates/webadmin/admins.html
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ <h3 data-i18n="admin.view_manage" class="card-title section-title">View and mana
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);
Expand Down
2 changes: 1 addition & 1 deletion templates/webadmin/connections.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ <h3 data-i18n="connections.view_manage" class="card-title section-title">View an
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();
});
}

Expand Down
2 changes: 1 addition & 1 deletion templates/webadmin/defender.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ <h3 data-i18n="defender.view_manage" class="card-title section-title">View and m
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();
});
}

Expand Down
2 changes: 1 addition & 1 deletion templates/webadmin/eventactions.html
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ <h3 data-i18n="actions.view_manage" class="card-title section-title">View and ma
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();
});
}

Expand Down
2 changes: 1 addition & 1 deletion templates/webadmin/eventrules.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ <h3 data-i18n="rules.view_manage" class="card-title section-title">View and mana
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();
});
}

Expand Down
2 changes: 1 addition & 1 deletion templates/webadmin/folders.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ <h3 data-i18n="virtual_folders.view_manage" class="card-title section-title">Vie
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);
Expand Down
2 changes: 1 addition & 1 deletion templates/webadmin/groups.html
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ <h3 data-i18n="group.view_manage" class="card-title section-title">View and mana
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);
Expand Down
2 changes: 1 addition & 1 deletion templates/webadmin/roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ <h3 data-i18n="role.view_manage" class="card-title section-title">View and manag
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);
Expand Down
2 changes: 1 addition & 1 deletion templates/webadmin/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ <h3 data-i18n="user.view_manage" class="card-title section-title">View and manag
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);
Expand Down
2 changes: 1 addition & 1 deletion templates/webclient/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ <h4 class="gslide-title"></h4>
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();
});
}

Expand Down
2 changes: 1 addition & 1 deletion templates/webclient/shares.html
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ <h4 data-i18n="share.link_uncompressed_title">Uncompressed file</h4>
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();
});
}

Expand Down

0 comments on commit ab320c9

Please sign in to comment.