Commit a55b653d authored by Valery Sizov's avatar Valery Sizov

fix of frequently used emojis

parent 5ed12564
......@@ -137,9 +137,9 @@ class @AwardsHandler
for emoji in frequently_used_emojis
do (emoji) ->
$(".emoji-menu-content [data-emoji='" + emoji + "']").closest("li").clone().appendTo(ul)
$(".emoji-menu-content [data-emoji='#{emoji}']").closest("li").clone().appendTo(ul)
$(".emoji-menu-content").prepend(ul).prepend($("<h4>").text("Frequently used"))
$("input.emoji-search").after(ul).after($("<h5>").text("Frequently used"))
setupSearch: ->
$("input.emoji-search").keyup (ev) =>
......@@ -149,7 +149,7 @@ class @AwardsHandler
$("ul.emoji-search,h5.emoji-search").remove()
if term
# Generate search result block
# Generate a search result block
h5 = $("<h5>").text("Search results").addClass("emoji-search")
found_emojis = @searchEmojis(term).show()
ul = $("<ul>").addClass("emoji-search").append(found_emojis)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment