Mark the first user list result as active for convenience

This _also_ reproduces behavior of autocompletion dropdown.
This commit is contained in:
Jérémie Astori 2017-12-16 16:34:07 -05:00
parent 81e1d15ee9
commit 3070ae098a
No known key found for this signature in database
GPG key ID: B9A4F245CD67BDE8

View file

@ -37,6 +37,9 @@ chat.on("input", ".users .search", function() {
names.hide();
container.html(templates.user_filtered({matches: result})).show();
// Mark the first result as active for convenience
container.find(".user").first().addClass("active");
});
chat.on("mouseenter", ".users .user", function() {