This commit is contained in:
parent
8d797c5c0b
commit
da5709e3f0
|
@ -1,6 +1,6 @@
|
|||
[
|
||||
<% @users && @users.each_with_index do |person,index| %>
|
||||
{"id": <%=index%>, "name": "<%=person.show_name%>", "login": "<%=person.login%>", "searchKey": "<%=person.get_at_show_name%>"}
|
||||
{"id":<%=index%>, "userid": <%=person.id%>, "name": "<%=person.show_name%>", "login": "<%=person.login%>", "searchKey": "<%=person.get_at_show_name%>"}
|
||||
<%= index != @users.size-1 ? ',' : '' %>
|
||||
<% end %>
|
||||
]
|
||||
|
|
|
@ -34,7 +34,7 @@ var enableAt = function(_editor) {
|
|||
var at_config = {
|
||||
at: "@",
|
||||
data: names,
|
||||
insertTpl: '<span style="color:#269ac9">@${name}(${login})</span>',
|
||||
insertTpl: '@${name}(${login})',
|
||||
displayTpl: "<li>${name} <small>${login}</small></li>",
|
||||
searchKey: 'searchKey',
|
||||
limit: 200
|
||||
|
|
Loading…
Reference in New Issue