From bb8e3aaccf121b2492253aedbaf314baffcff912 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 6 Aug 2020 20:21:35 +0200 Subject: [PATCH] Display what is matched in user table (experimental, normalizing is not working) --- templates/member/user_list.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/member/user_list.html b/templates/member/user_list.html index eeb616fe..d605c492 100644 --- a/templates/member/user_list.html +++ b/templates/member/user_list.html @@ -58,8 +58,10 @@ timer_on = false; }); - $("tr > td:eq(0), tr > td:eq(1), tr > td:eq(2), tr > td:eq(3), tr > td:eq(5)").each(function() { - $(this).html($(this).text().replace(new RegExp(searchbar_obj.val(), 'i'), "$&")); + $("tr").each(function() { + $(this).find("td:eq(0), td:eq(1), td:eq(2), td:eq(3), td:eq(5)").each(function() { + $(this).html($(this).text().replace(new RegExp(searchbar_obj.val(), 'i'), "$&")); + }); }); }