Render frequent emoji block once.

This commit is contained in:
Fatih Acet 2016-06-09 03:02:49 +03:00
parent 091e030070
commit 52525dc4c2

View file

@ -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: ->