Skip to content
Snippets Groups Projects
Commit e885c2fd authored by Fatih Acet's avatar Fatih Acet
Browse files

Ignore frequent emojis in search.

parent c9878373
No related branches found
No related tags found
No related merge requests found
Loading
@@ -336,7 +336,7 @@ class @AwardsHandler
Loading
@@ -336,7 +336,7 @@ class @AwardsHandler
if $.cookie 'frequently_used_emojis' if $.cookie 'frequently_used_emojis'
frequentlyUsedEmojis = @getFrequentlyUsedEmojis() frequentlyUsedEmojis = @getFrequentlyUsedEmojis()
   
ul = $("<ul class='clearfix emoji-menu-list'>") ul = $("<ul class='clearfix emoji-menu-list frequent'>")
   
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)
Loading
@@ -367,4 +367,4 @@ class @AwardsHandler
Loading
@@ -367,4 +367,4 @@ class @AwardsHandler
   
searchEmojis: (term) -> searchEmojis: (term) ->
   
$(".emoji-menu-content [data-emoji*='#{term}']").closest('li').clone() $(".emoji-menu-list:not(.frequent) [data-emoji*='#{term}']").closest('li').clone()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment