Minor MR comment fixes.
yes -> true no -> false . frequent -> .frequent-emojis
This commit is contained in:
parent
e885c2fd31
commit
94826d9abe
1 changed files with 6 additions and 6 deletions
|
@ -100,7 +100,7 @@ class @AwardsHandler
|
||||||
$menu.css(css)
|
$menu.css(css)
|
||||||
|
|
||||||
|
|
||||||
addAward: (votesBlock, awardUrl, emoji, checkMutuality = yes, callback) ->
|
addAward: (votesBlock, awardUrl, emoji, checkMutuality = true, callback) ->
|
||||||
|
|
||||||
emoji = @normilizeEmojiName emoji
|
emoji = @normilizeEmojiName emoji
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ class @AwardsHandler
|
||||||
$('.emoji-menu').removeClass 'is-visible'
|
$('.emoji-menu').removeClass 'is-visible'
|
||||||
|
|
||||||
|
|
||||||
addAwardToEmojiBar: (votesBlock, emoji, checkForMutuality = yes) ->
|
addAwardToEmojiBar: (votesBlock, emoji, checkForMutuality = true) ->
|
||||||
|
|
||||||
@checkMutuality votesBlock, emoji if checkForMutuality
|
@checkMutuality votesBlock, emoji if checkForMutuality
|
||||||
@addEmojiToFrequentlyUsedList emoji
|
@addEmojiToFrequentlyUsedList emoji
|
||||||
|
@ -153,7 +153,7 @@ class @AwardsHandler
|
||||||
|
|
||||||
if isAlreadyVoted
|
if isAlreadyVoted
|
||||||
@showEmojiLoader $emojiButton
|
@showEmojiLoader $emojiButton
|
||||||
@addAward votesBlock, awardUrl, mutualVote, no, ->
|
@addAward votesBlock, awardUrl, mutualVote, false, ->
|
||||||
$emojiButton.removeClass 'is-loading'
|
$emojiButton.removeClass 'is-loading'
|
||||||
|
|
||||||
|
|
||||||
|
@ -336,14 +336,14 @@ class @AwardsHandler
|
||||||
if $.cookie 'frequently_used_emojis'
|
if $.cookie 'frequently_used_emojis'
|
||||||
frequentlyUsedEmojis = @getFrequentlyUsedEmojis()
|
frequentlyUsedEmojis = @getFrequentlyUsedEmojis()
|
||||||
|
|
||||||
ul = $("<ul class='clearfix emoji-menu-list frequent'>")
|
ul = $("<ul class='clearfix emoji-menu-list frequent-emojis'>")
|
||||||
|
|
||||||
for emoji in frequentlyUsedEmojis
|
for emoji in frequentlyUsedEmojis
|
||||||
$(".emoji-menu-content [data-emoji='#{emoji}']").closest('li').clone().appendTo(ul)
|
$(".emoji-menu-content [data-emoji='#{emoji}']").closest('li').clone().appendTo(ul)
|
||||||
|
|
||||||
$('input.emoji-search').after(ul).after($('<h5>').text('Frequently used'))
|
$('input.emoji-search').after(ul).after($('<h5>').text('Frequently used'))
|
||||||
|
|
||||||
@frequentEmojiBlockRendered = yes
|
@frequentEmojiBlockRendered = true
|
||||||
|
|
||||||
|
|
||||||
setupSearch: ->
|
setupSearch: ->
|
||||||
|
@ -367,4 +367,4 @@ class @AwardsHandler
|
||||||
|
|
||||||
searchEmojis: (term) ->
|
searchEmojis: (term) ->
|
||||||
|
|
||||||
$(".emoji-menu-list:not(.frequent) [data-emoji*='#{term}']").closest('li').clone()
|
$(".emoji-menu-list:not(.frequent-emojis) [data-emoji*='#{term}']").closest('li').clone()
|
||||||
|
|
Loading…
Reference in a new issue