Skip to content
Snippets Groups Projects
Commit 524917dd authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

merge test

parent fa2119a4
No related branches found
No related tags found
No related merge requests found
......@@ -482,29 +482,29 @@ ChatMessages = (->
resize()
toBottom() if self.scrollable
# $(".input-message").textcomplete [ {
# match: /\B:([\-+\w]*)$/
# search: (term, callback) ->
# results = []
# $.each emojione.emojioneList, (shortname, data) ->
# if shortname.indexOf(term) > -1
# results.push shortname
# return
# if term.length >= 3
# results.sort (a, b) ->
# a.length > b.length
# callback results
# return
# template: (shortname) ->
# length = emojione.emojioneList[shortname].length
# '<img class="emojione" src="//cdn.jsdelivr.net/emojione/assets/png/' + emojione.emojioneList[shortname][length - 1].toUpperCase() + '.png"> ' + shortname
# replace: (shortname) ->
# event.stopPropagation()
# event.preventDefault()
# shortname
# index: 1
# maxCount: 10
# } ], footer: '', placement: 'top'
$(".input-message").textcomplete [ {
match: /\B:([\-+\w]*)$/
search: (term, callback) ->
results = []
$.each emojione.emojioneList, (shortname, data) ->
if shortname.indexOf(term) > -1
results.push shortname
return
if term.length >= 3
results.sort (a, b) ->
a.length > b.length
callback results
return
template: (shortname) ->
length = emojione.emojioneList[shortname].length
'<img class="emojione" src="//cdn.jsdelivr.net/emojione/assets/png/' + emojione.emojioneList[shortname][length - 1].toUpperCase() + '.png"> ' + shortname
replace: (shortname) ->
event.stopPropagation()
event.preventDefault()
shortname
index: 1
maxCount: 10
} ], footer: '', placement: 'top'
return
......
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