mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Select search targets based on class and not element
This fixes the search after changing from buttons to spans.
This commit is contained in:
parent
1438ba6f93
commit
7289844182
1 changed files with 1 additions and 1 deletions
|
@ -771,7 +771,7 @@ $(function() {
|
|||
chat.on("input", ".search", function() {
|
||||
var value = $(this).val().toLowerCase();
|
||||
var names = $(this).closest(".users").find(".names");
|
||||
names.find("button").each(function() {
|
||||
names.find(".user").each(function() {
|
||||
var btn = $(this);
|
||||
var name = btn.text().toLowerCase().replace(/[+%@~]/, "");
|
||||
if (name.indexOf(value) === 0) {
|
||||
|
|
Loading…
Reference in a new issue