Commit f6513309 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixes project shortcut combo.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2916 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent d8ba5c2a
...@@ -147,8 +147,8 @@ module ApplicationHelper ...@@ -147,8 +147,8 @@ module ApplicationHelper
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 value='' selected='selected'>#{ l(:label_jump_to_a_project) }</option>" +
'<option disabled="disabled">---</option>' '<option value="" disabled="disabled">---</option>'
s << project_tree_options_for_select(projects) do |p| s << project_tree_options_for_select(projects) do |p|
{ :value => url_for(:controller => 'projects', :action => 'show', :id => p, :jump => current_menu_item) } { :value => url_for(:controller => 'projects', :action => 'show', :id => p, :jump => current_menu_item) }
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment