Commit 62571ae1 authored by Jacob Schatz's avatar Jacob Schatz

Fixes tooltip doesn't duplicate the "me" name.

Checks that "me" is not in the array of names in tooltip
parent 21ac92b8
......@@ -66,14 +66,10 @@ class @AwardsHandler
addMeToAuthorList: (emoji) ->
award_block = @findEmojiIcon(emoji).parent()
authors = _.compact(award_block.attr("data-original-title").split(", "))
authors.push("me")
if authors.length == 1
award_block.attr("title", "me")
else
award_block.attr("title", authors.join(", "))
authors = award_block.attr("data-original-title").split(", ")
if authors.indexOf("me") == -1
authors.push("me")
award_block.attr("title", authors.join(", "))
@resetTooltip(award_block)
resetTooltip: (award) ->
......
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