This commit is contained in:
guange 2015-12-15 14:52:24 +08:00
parent 8d797c5c0b
commit da5709e3f0
2 changed files with 2 additions and 2 deletions

View File

@ -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 %>
] ]

View File

@ -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