feat(webpanel): enable searching by user note

This commit is contained in:
ReturnFI
2025-10-28 19:45:58 +00:00
parent 1e763781ce
commit 0903222982
2 changed files with 3 additions and 2 deletions

View File

@ -311,7 +311,8 @@ $(function () {
const searchText = $("#searchInput").val().toLowerCase();
$("#userTable tbody tr.user-main-row").each(function () {
const username = $(this).find("td:eq(2)").text().toLowerCase();
const isVisible = username.includes(searchText);
const note = $(this).data("note").toLowerCase();
const isVisible = username.includes(searchText) || note.includes(searchText);
$(this).toggle(isVisible);
if (!isVisible) {
$(this).next('tr.user-details-row').hide();