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:
parent
8dad27236b
commit
26dd3e8b43
@ -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 %>');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user