Render frequent emoji block once.
This commit is contained in:
parent
091e030070
commit
52525dc4c2
1 changed files with 3 additions and 1 deletions
|
@ -65,7 +65,7 @@ class @AwardsHandler
|
|||
$addBtn.removeClass 'is-loading'
|
||||
$menu = $('.emoji-menu')
|
||||
@positionMenu($menu, $addBtn)
|
||||
@renderFrequentlyUsedBlock()
|
||||
@renderFrequentlyUsedBlock() unless @frequentEmojiBlockRendered
|
||||
|
||||
setTimeout =>
|
||||
$menu.addClass 'is-visible'
|
||||
|
@ -343,6 +343,8 @@ class @AwardsHandler
|
|||
|
||||
$('input.emoji-search').after(ul).after($('<h5>').text('Frequently used'))
|
||||
|
||||
@frequentEmojiBlockRendered = yes
|
||||
|
||||
|
||||
setupSearch: ->
|
||||
|
||||
|
|
Loading…
Reference in a new issue