Revision 1283:006057cf8f16 plugins/redmine_bibliography/app/views/publications

View differences:

plugins/redmine_bibliography/app/views/publications/autocomplete_for_author.html.erb
1
<% if params[:q] && params[:q].length > 1 %>
2
	<%= choose_author_link @object_name, @results %>
3
<% end %>
4

  
1
<%= raw @results.map {|result| {
2
      'id' => result.id,
3
      'label' => "#{result.name} (#{result.mail.partition('@')[2]})",
4
      'value' => result.name,
5
      'type' => result.class,
6
      }
7
    }.to_json
8
%>

Also available in: Unified diff