summaryrefslogtreecommitdiffstats
path: root/app/views/projects
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-26 08:16:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-26 08:16:15 +0000
commit62823442d369705290807fa2a5191a1a67d6ee09 (patch)
treef50e09ed18bbb7fdef85f0fe21d8d18d0a8202b9 /app/views/projects
parentbac3ac738a5cad495eb5862bad4e58cca02c8c6d (diff)
downloadredmine-62823442d369705290807fa2a5191a1a67d6ee09.tar.gz
redmine-62823442d369705290807fa2a5191a1a67d6ee09.zip
Replaces project jump select with custom dropdown (#23310).
git-svn-id: http://svn.redmine.org/redmine/trunk@15994 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/index.js.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/index.js.erb b/app/views/projects/index.js.erb
new file mode 100644
index 000000000..b4731fb09
--- /dev/null
+++ b/app/views/projects/index.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').html('<%= escape_javascript s %>');