Files
Redmine/app/views/projects/autocomplete.js.erb
Go MAEDA b15d6fc544 Always preserve the tree structure in the project jump box (#32944).
Patch by Jens Krämer.


git-svn-id: http://svn.redmine.org/redmine/trunk@19861 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-07-06 14:06:52 +00:00

10 lines
259 B
Plaintext

<%
s = ''
if @projects.any?
s = render_projects_for_jump_box(@projects, query: params[:q])
elsif params[:q].present?
s = content_tag('span', l(:label_no_data))
end
%>
$('#project-jump .drdn-items.projects').html('<%= escape_javascript s %>');