mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-03 14:22:19 +02:00
Mark the first user list result as active for convenience
This _also_ reproduces behavior of autocompletion dropdown.
This commit is contained in:
parent
81e1d15ee9
commit
3070ae098a
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue