Ignore frequent emojis in search.
This commit is contained in:
parent
c987837336
commit
e885c2fd31
1 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ class @AwardsHandler
|
|||
if $.cookie 'frequently_used_emojis'
|
||||
frequentlyUsedEmojis = @getFrequentlyUsedEmojis()
|
||||
|
||||
ul = $("<ul class='clearfix emoji-menu-list'>")
|
||||
ul = $("<ul class='clearfix emoji-menu-list frequent'>")
|
||||
|
||||
for emoji in frequentlyUsedEmojis
|
||||
$(".emoji-menu-content [data-emoji='#{emoji}']").closest('li').clone().appendTo(ul)
|
||||
|
@ -367,4 +367,4 @@ class @AwardsHandler
|
|||
|
||||
searchEmojis: (term) ->
|
||||
|
||||
$(".emoji-menu-content [data-emoji*='#{term}']").closest('li').clone()
|
||||
$(".emoji-menu-list:not(.frequent) [data-emoji*='#{term}']").closest('li').clone()
|
||||
|
|
Loading…
Reference in a new issue