diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-24 11:29:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-24 11:29:49 +0000 |
commit | a68d8a7b32fbbf8d7d651eb38fe48b676d8b610a (patch) | |
tree | 93d9dbb92670a6e65f65628f14b729bc5ce0ca40 /app | |
parent | 2cec9f87ab17171fb780317ce78590b4bd67dc78 (diff) | |
download | redmine-a68d8a7b32fbbf8d7d651eb38fe48b676d8b610a.tar.gz redmine-a68d8a7b32fbbf8d7d651eb38fe48b676d8b610a.zip |
Sets the current project as the default value of project jump box (#4053).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2959 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a1553e684..ea6f286d3 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -147,9 +147,9 @@ module ApplicationHelper projects = User.current.projects.all if projects.any? s = '<select onchange="if (this.value != \'\') { window.location = this.value; }">' + - "<option value='' selected='selected'>#{ l(:label_jump_to_a_project) }</option>" + + "<option value=''>#{ l(:label_jump_to_a_project) }</option>" + '<option value="" disabled="disabled">---</option>' - s << project_tree_options_for_select(projects) do |p| + s << project_tree_options_for_select(projects, :selected => @project) do |p| { :value => url_for(:controller => 'projects', :action => 'show', :id => p, :jump => current_menu_item) } end s << '</select>' |