diff options
author | Phil Hughes <me@iamphill.com> | 2016-03-02 15:43:01 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-03-11 09:03:08 +0000 |
commit | b5f3cf82184c1293684337e2be847c2bc3268578 (patch) | |
tree | 399a4636b0c417cab185b7aa044da50c4769a7fb /app | |
parent | e3d844984b385cebcb92d21695b1d513e6b745c7 (diff) | |
download | gitlab-ce-b5f3cf82184c1293684337e2be847c2bc3268578.tar.gz |
Moved method calls to separate lines
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/awards_handler.coffee | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/app/assets/javascripts/awards_handler.coffee b/app/assets/javascripts/awards_handler.coffee index e9bf053aa56..66b26e4e6d7 100644 --- a/app/assets/javascripts/awards_handler.coffee +++ b/app/assets/javascripts/awards_handler.coffee @@ -114,12 +114,17 @@ class @AwardsHandler emojiCssClass = @resolveNameToCssClass(emoji) nodes = [] - nodes.push "<button class='btn award-control js-emoji-btn has_tooltip active' title='me'>" - nodes.push "<div class='icon emoji-icon #{emojiCssClass}' data-emoji='#{emoji}'></div>" - nodes.push "<span class='award-control-text js-counter'>1</span>" - nodes.push "</button>" - - emoji_node = $(nodes.join("\n")).insertBefore(".js-award-holder").find(".emoji-icon").data("emoji", emoji) + nodes.push( + "<button class='btn award-control js-emoji-btn has_tooltip active' title='me'>", + "<div class='icon emoji-icon #{emojiCssClass}' data-emoji='#{emoji}'></div>", + "<span class='award-control-text js-counter'>1</span>", + "</button>" + ) + + emoji_node = $(nodes.join("\n")) + .insertBefore(".js-award-holder") + .find(".emoji-icon") + .data("emoji", emoji) $('.award-control').tooltip() resolveNameToCssClass: (emoji) -> |