From 7289844182675de4cf08818dee6fd96ca110b9d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Fri, 24 Jun 2016 02:31:28 -0400 Subject: [PATCH] Select search targets based on class and not element This fixes the search after changing from buttons to spans. --- client/js/lounge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index a67bf019..342db87c 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -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) {