mirror of
https://github.com/thelounge/thelounge
synced 2024-12-04 17:59:15 +00:00
Fix searching for user in user list, closes #851
This commit is contained in:
parent
d9cde04af6
commit
ba00738f1f
1 changed files with 1 additions and 1 deletions
|
@ -1112,7 +1112,7 @@ $(function() {
|
||||||
names.find(".user").each(function() {
|
names.find(".user").each(function() {
|
||||||
var btn = $(this);
|
var btn = $(this);
|
||||||
var name = btn.text().toLowerCase().replace(/[+%@~]/, "");
|
var name = btn.text().toLowerCase().replace(/[+%@~]/, "");
|
||||||
if (name.indexOf(value) === 0) {
|
if (name.indexOf(value) > -1) {
|
||||||
btn.show();
|
btn.show();
|
||||||
} else {
|
} else {
|
||||||
btn.hide();
|
btn.hide();
|
||||||
|
|
Loading…
Reference in a new issue