Auto-focus emoji award search field

Closes #12621
This commit is contained in:
Phil Hughes 2016-01-29 12:15:58 +00:00
parent f5860ce646
commit 1b97872793
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ class @AwardsHandler
event.stopPropagation()
event.preventDefault()
$(".emoji-menu").show()
$("#emoji_search").focus()
$("html").on 'click', (event) ->
if !$(event.target).closest(".emoji-menu").length

View File

@ -7,7 +7,7 @@
- if current_user
.awards-controls
%a.add-award{"data-toggle" => "dropdown", "data-target" => "#", "href" => "#"}
%a.add-award{"href" => "#"}
= icon('smile-o')
.emoji-menu
.emoji-menu-content