Skip to content
Snippets Groups Projects
Commit 1b978727 authored by Phil Hughes's avatar Phil Hughes
Browse files

Auto-focus emoji award search field

Closes #12621
parent f5860ce6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment