Commit d8676f18 authored by Valery Sizov's avatar Valery Sizov Committed by Valery Sizov

fix

parent 2d1fcd80
...@@ -15,17 +15,16 @@ ...@@ -15,17 +15,16 @@
:coffeescript :coffeescript
post_emoji_url = "#{award_toggle_namespace_project_notes_path(@project.namespace, @project)}" post_emoji_url = "#{award_toggle_namespace_project_notes_path(@project.namespace, @project)}"
noteable_type = #{votable} noteable_type = "#{votable.class}"
noteable_id = #{votable.id} noteable_id = "#{votable.id}"
window.awards_handler = new AwardsHandler(post_emoji_url, noteable_type, noteable_id) window.awards_handler = new AwardsHandler(post_emoji_url, noteable_type, noteable_id)
$ -> $(".awards-menu li").click (e)->
$(".awards-menu li").click (e)-> emoji = $(this).data("emoji")
emoji = $(this).data("emoji") awards_handler.addAward(emoji)
awards_handler.addAward(emoji)
$(".awards").on "click", ".award", (e)-> $(".awards").on "click", ".award", (e)->
emoji = $(this).find(".icon").data("emoji") emoji = $(this).find(".icon").data("emoji")
awards_handler.addAward(emoji) awards_handler.addAward(emoji)
$(".award").tooltip() $(".award").tooltip()
\ No newline at end of file \ No newline at end of file
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