diff options
author | Valery Sizov <valery@gitlab.com> | 2015-11-18 16:48:37 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-11-19 01:25:59 +0200 |
commit | 2f6f99d300675b0794b2e96be564db9d405fac36 (patch) | |
tree | 81bce63b6ece047385898e594d491a1822bbbfba /app/views/votes | |
parent | f021bc5c6aa79147940ee31e800f519962f4d806 (diff) | |
download | gitlab-ce-2f6f99d300675b0794b2e96be564db9d405fac36.tar.gz |
award for merge requests[ci skip]
Diffstat (limited to 'app/views/votes')
-rw-r--r-- | app/views/votes/_votes_block.html.haml | 10 |
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 |