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