Merge pull request #855 from MaxLeiter/MaxLeiter/search

Fix searching for user in user list, closes #851
This commit is contained in:
Alistair McKinlay 2017-01-04 11:15:14 +00:00 committed by GitHub
commit 0d8b58425e

View File

@ -1108,7 +1108,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();