summaryrefslogtreecommitdiff
path: root/app/views/votes/_votes_block.html.haml
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2015-11-18 16:48:37 +0200
committerValery Sizov <vsv2711@gmail.com>2015-11-19 01:25:59 +0200
commit2f6f99d300675b0794b2e96be564db9d405fac36 (patch)
tree81bce63b6ece047385898e594d491a1822bbbfba /app/views/votes/_votes_block.html.haml
parentf021bc5c6aa79147940ee31e800f519962f4d806 (diff)
downloadgitlab-ce-2f6f99d300675b0794b2e96be564db9d405fac36.tar.gz
award for merge requests[ci skip]
Diffstat (limited to 'app/views/votes/_votes_block.html.haml')
-rw-r--r--app/views/votes/_votes_block.html.haml10
1 files changed, 3 insertions, 7 deletions
diff --git a/app/views/votes/_votes_block.html.haml b/app/views/votes/_votes_block.html.haml
index a2298f1813a..2ae832c31f7 100644
--- a/app/views/votes/_votes_block.html.haml
+++ b/app/views/votes/_votes_block.html.haml
@@ -15,8 +15,8 @@
:coffeescript
post_emoji_url = "#{award_toggle_namespace_project_notes_path(@project.namespace, @project)}"
- noteable_type = "Issue"
- noteable_id = #{@issue.id}
+ noteable_type = #{votable}
+ noteable_id = #{votable.id}
window.awards_handler = new AwardsHandler(post_emoji_url, noteable_type, noteable_id)
$ ->
@@ -28,8 +28,4 @@
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