diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-05-30 16:15:02 +0300 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-06-06 11:07:22 +0200 |
commit | ce5729139fb8e37f4242996b29c4dfb181610acd (patch) | |
tree | 81ae79ee7dafc8a6201a408abd79ba7c4accdd66 /app | |
parent | 40c86c916e252dd3556c0dc526e6a9de505e5de3 (diff) | |
download | gitlab-ce-ce5729139fb8e37f4242996b29c4dfb181610acd.tar.gz |
Fix mutual exclusivity for emoji only comments.
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/awards_handler.coffee | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/awards_handler.coffee b/app/assets/javascripts/awards_handler.coffee index 27b2853e7d1..2b3e6ad6224 100644 --- a/app/assets/javascripts/awards_handler.coffee +++ b/app/assets/javascripts/awards_handler.coffee @@ -131,7 +131,10 @@ class @AwardsHandler @createEmoji votesBlock, emoji - getVotesBlock: -> return $ '.js-awards-block.current' + getVotesBlock: -> + + currentBlock = $ '.js-awards-block.current' + return if currentBlock.length then currentBlock else $('.js-awards-block').eq 0 getAwardUrl: -> return @getVotesBlock().data 'award-url' |