summaryrefslogtreecommitdiffstats
path: root/app/views/projects/autocomplete.js.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-05-13 09:20:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-05-13 09:20:29 +0000
commit23dc61685066faab63f366fc5d7f88f985431359 (patch)
treedb4000125a8a56688c01c67838b920dcd99418fa /app/views/projects/autocomplete.js.erb
parentc7cff810e8060e2e887330451bba0536b3e8c2f5 (diff)
downloadredmine-23dc61685066faab63f366fc5d7f88f985431359.tar.gz
redmine-23dc61685066faab63f366fc5d7f88f985431359.zip
Moves project quick search to a dedicated action.
git-svn-id: http://svn.redmine.org/redmine/trunk@16550 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/autocomplete.js.erb')
-rw-r--r--app/views/projects/autocomplete.js.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/autocomplete.js.erb b/app/views/projects/autocomplete.js.erb
new file mode 100644
index 000000000..de6c3f579
--- /dev/null
+++ b/app/views/projects/autocomplete.js.erb
@@ -0,0 +1,2 @@
+<% s = @projects.any? ? render_projects_for_jump_box(@projects) : content_tag('span', l(:label_no_data)) %>
+$('#project-jump .drdn-items.projects').html('<%= escape_javascript s %>');