BigW Consortium Gitlab

Commit 62571ae1 by 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 ...@@ -66,14 +66,10 @@ class @AwardsHandler
addMeToAuthorList: (emoji) -> addMeToAuthorList: (emoji) ->
award_block = @findEmojiIcon(emoji).parent() award_block = @findEmojiIcon(emoji).parent()
authors = _.compact(award_block.attr("data-original-title").split(", ")) authors = award_block.attr("data-original-title").split(", ")
authors.push("me") if authors.indexOf("me") == -1
authors.push("me")
if authors.length == 1 award_block.attr("title", authors.join(", "))
award_block.attr("title", "me")
else
award_block.attr("title", authors.join(", "))
@resetTooltip(award_block) @resetTooltip(award_block)
resetTooltip: (award) -> 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