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:
1 parent
ea729654cc
commit
161e32889f
1 file changed
+2
-1
@@ -153,7 +153,7 @@ module ApplicationHelper
|
|||||||
# Retrieve them now to avoid a COUNT query
|
# Retrieve them now to avoid a COUNT query
|
||||||
projects = User.current.projects.all
|
projects = User.current.projects.all
|
||||||
if projects.any?
|
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 selected='selected'>#{ l(:label_jump_to_a_project) }</option>" +
|
||||||
'<option disabled="disabled">---</option>'
|
'<option disabled="disabled">---</option>'
|
||||||
ancestors = []
|
ancestors = []
|
||||||
@@ -161,6 +161,7 @@ module ApplicationHelper
|
|||||||
s << content_tag('option', ('» ' * level) + h(project), :value => url_for(:controller => 'projects', :action => 'show', :id => project))
|
s << content_tag('option', ('» ' * level) + h(project), :value => url_for(:controller => 'projects', :action => 'show', :id => project))
|
||||||
end
|
end
|
||||||
s << '</select>'
|
s << '</select>'
|
||||||
|
s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user