Commit 5da8c1f7 authored by Valery Sizov's avatar Valery Sizov

fixes after review

parent 694579ce
......@@ -118,7 +118,7 @@ class @AwardsHandler
@aliases[emoji] || emoji
setupSearch: ->
$("input.emoji-search").keyup (ev)=>
$("input.emoji-search").keyup (ev) =>
term = $(ev.target).val()
# Clean previous search results
......@@ -135,4 +135,4 @@ class @AwardsHandler
$(".emoji-menu-content").children().show()
searchEmojis: (term)->
$(".emoji-menu-content [data-emoji*='" + term + "']").closest("li").clone()
$(".emoji-menu-content [data-emoji*='#{term}']").closest("li").clone()
......@@ -102,7 +102,7 @@
}
input.emoji-search{
background: url(/assets/icon-search.png) 240px no-repeat;
background: image-url(/assets/icon-search.png) 240px no-repeat;
}
li {
......
......@@ -4,7 +4,7 @@ The source: gemojione gem.
*/
.emoji-icon{
background-image: url(emoji.png);
background-image: image-url(emoji.png);
background-repeat: no-repeat;
}
......
......@@ -33,11 +33,11 @@
aliases
)
$(".awards").on "click", ".emoji-menu-content li", (e)->
$(".awards").on "click", ".emoji-menu-content li", (e) ->
emoji = $(this).find(".emoji-icon").data("emoji")
awards_handler.addAward(emoji)
$(".awards").on "click", ".award", (e)->
$(".awards").on "click", ".award", (e) ->
emoji = $(this).find(".icon").data("emoji")
awards_handler.addAward(emoji)
......
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