diff --git a/assets/js/autocomplete.js b/assets/js/autocomplete.js index 962c7ab..95c1575 100644 --- a/assets/js/autocomplete.js +++ b/assets/js/autocomplete.js @@ -443,3 +443,5 @@ horse_racing_tone4:{unicode:"1f3c7-1f3fe",shortname:":horse_racing_tone4:",alias shortname:":spy_tone2:",aliases:":sleuth_or_spy_tone2:",keywords:"sleuth or spy tone 2 pi undercover investigator person"},spy_tone3:{unicode:"1f575-1f3fd",shortname:":spy_tone3:",aliases:":sleuth_or_spy_tone3:",keywords:"sleuth or spy tone 3 pi undercover investigator person"},spy_tone4:{unicode:"1f575-1f3fe",shortname:":spy_tone4:",aliases:":sleuth_or_spy_tone4:",keywords:"sleuth or spy tone 4 pi undercover investigator person"},spy_tone5:{unicode:"1f575-1f3ff",shortname:":spy_tone5:",aliases:":sleuth_or_spy_tone5:", keywords:"sleuth or spy tone 5 pi undercover investigator person"},tone1:{unicode:"1f3fb",shortname:":tone1:",aliases:"",keywords:"emoji modifier Fitzpatrick type-1-2"},tone2:{unicode:"1f3fc",shortname:":tone2:",aliases:"",keywords:"emoji modifier Fitzpatrick type-3"},tone3:{unicode:"1f3fd",shortname:":tone3:",aliases:"",keywords:"emoji modifier Fitzpatrick type-4"},tone4:{unicode:"1f3fe",shortname:":tone4:",aliases:"",keywords:"emoji modifier Fitzpatrick type-5"},tone5:{unicode:"1f3ff",shortname:":tone5:", aliases:"",keywords:"emoji modifier Fitzpatrick type-6"}}; +$(document).ready(function(){$("textarea").textcomplete([{match:/\B:([\-+\w]*)$/,search:function(a,g){var d=[],e=[],f=[];$.each(emojiStrategy,function(c,b){-1b.length}),e.sort(function(a,b){return a.length>b.length}),f.sort());var h=d.concat(e).concat(f);g(h)},template:function(a){return' :'+a+":"},replace:function(a){return":"+a+": "},index:1,maxCount:10}],{footer:'Browse All\u00bb'})});