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();
|
names.hide();
|
||||||
container.html(templates.user_filtered({matches: result})).show();
|
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() {
|
chat.on("mouseenter", ".users .user", function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user