1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-27 10:51:15 +00:00

Show no data message when searching only.

git-svn-id: http://svn.redmine.org/redmine/trunk@16552 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2017-05-13 09:26:43 +00:00
parent 8dad27236b
commit 26dd3e8b43

View File

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