summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2015-11-18 21:44:48 +0200
committerValery Sizov <vsv2711@gmail.com>2015-11-19 01:25:59 +0200
commitd8676f18fcbd6b78af472b8b00c29f20820a74a9 (patch)
treeb49225b33cf0cc018c145f82b02dae5e66cdd804 /app/views
parent2d1fcd802a291cc8e26fbbe5874e20316a5f93af (diff)
downloadgitlab-ce-d8676f18fcbd6b78af472b8b00c29f20820a74a9.tar.gz
fix
Diffstat (limited to 'app/views')
-rw-r--r--app/views/votes/_votes_block.html.haml19
1 files changed, 9 insertions, 10 deletions
diff --git a/app/views/votes/_votes_block.html.haml b/app/views/votes/_votes_block.html.haml
index 02947f2979e..afd1c2745a1 100644
--- a/app/views/votes/_votes_block.html.haml
+++ b/app/views/votes/_votes_block.html.haml
@@ -15,17 +15,16 @@
:coffeescript
post_emoji_url = "#{award_toggle_namespace_project_notes_path(@project.namespace, @project)}"
- noteable_type = #{votable}
- noteable_id = #{votable.id}
+ noteable_type = "#{votable.class}"
+ noteable_id = "#{votable.id}"
window.awards_handler = new AwardsHandler(post_emoji_url, noteable_type, noteable_id)
- $ ->
- $(".awards-menu li").click (e)->
- emoji = $(this).data("emoji")
- awards_handler.addAward(emoji)
+ $(".awards-menu li").click (e)->
+ emoji = $(this).data("emoji")
+ awards_handler.addAward(emoji)
- $(".awards").on "click", ".award", (e)->
- emoji = $(this).find(".icon").data("emoji")
- awards_handler.addAward(emoji)
+ $(".awards").on "click", ".award", (e)->
+ emoji = $(this).find(".icon").data("emoji")
+ awards_handler.addAward(emoji)
- $(".award").tooltip() \ No newline at end of file
+ $(".award").tooltip() \ No newline at end of file