Merge pull request #65 from matiassingers/patch-2

Lowercase user search string in chat sidebar to match lowercased names
This commit is contained in:
Mattias Erming 2014-09-09 19:46:57 +02:00
commit dea1fe1b66

View File

@ -341,7 +341,7 @@ $(function() {
}); });
chat.on("input", ".search", function() { chat.on("input", ".search", function() {
var value = $(this).val(); var value = $(this).val().toLowerCase();
var names = $(this).closest(".users").find(".names"); var names = $(this).closest(".users").find(".names");
names.find("button").each(function() { names.find("button").each(function() {
var btn = $(this); var btn = $(this);