diff options
-rw-r--r-- | nested_projects/app/helpers/application_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nested_projects/app/helpers/application_helper.rb b/nested_projects/app/helpers/application_helper.rb index 82905ebcb..c93e16eed 100644 --- a/nested_projects/app/helpers/application_helper.rb +++ b/nested_projects/app/helpers/application_helper.rb @@ -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 |