mirror of
https://github.com/redmine/redmine.git
synced 2026-03-06 12:31:40 +01:00
Fixes project jump box.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/work@2162 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -153,7 +153,7 @@ module ApplicationHelper
|
||||
# Retrieve them now to avoid a COUNT query
|
||||
projects = User.current.projects.all
|
||||
if projects.any?
|
||||
s = '<select onchange="if (this.value != '') { window.location = this.value; }">' +
|
||||
s = '<select onchange="if (this.value != \'\') { window.location = this.value; }">' +
|
||||
"<option selected='selected'>#{ l(:label_jump_to_a_project) }</option>" +
|
||||
'<option disabled="disabled">---</option>'
|
||||
ancestors = []
|
||||
@@ -161,6 +161,7 @@ module ApplicationHelper
|
||||
s << content_tag('option', ('» ' * level) + h(project), :value => url_for(:controller => 'projects', :action => 'show', :id => project))
|
||||
end
|
||||
s << '</select>'
|
||||
s
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user