##// END OF EJS Templates
Always show "Jump to project" drop-down (#24833)....
Jean-Philippe Lang -
r15817:df18ece50437
parent child
Show More
@@ -358,7 +358,6 module ApplicationHelper
358 # Renders the project quick-jump box
358 # Renders the project quick-jump box
359 def render_project_jump_box
359 def render_project_jump_box
360 projects = projects_for_jump_box(User.current)
360 projects = projects_for_jump_box(User.current)
361 if projects.any?
362 text = @project.try(:name) || l(:label_jump_to_a_project)
361 text = @project.try(:name) || l(:label_jump_to_a_project)
363 trigger = content_tag('span', text, :class => 'drdn-trigger')
362 trigger = content_tag('span', text, :class => 'drdn-trigger')
364 q = text_field_tag('q', '', :id => 'projects-quick-search', :class => 'autocomplete', :data => {:automcomplete_url => projects_path(:format => 'js')})
363 q = text_field_tag('q', '', :id => 'projects-quick-search', :class => 'autocomplete', :data => {:automcomplete_url => projects_path(:format => 'js')})
@@ -372,7 +371,6 module ApplicationHelper
372
371
373 content_tag('span', trigger + content, :id => "project-jump", :class => "drdn")
372 content_tag('span', trigger + content, :id => "project-jump", :class => "drdn")
374 end
373 end
375 end
376
374
377 def project_tree_options_for_select(projects, options = {})
375 def project_tree_options_for_select(projects, options = {})
378 s = ''.html_safe
376 s = ''.html_safe
@@ -202,6 +202,9 div + .drdn-items {border-top:1px solid #ccc;}
202 .drdn-items.selection>*.selected:before {
202 .drdn-items.selection>*.selected:before {
203 content:"\2713 ";
203 content:"\2713 ";
204 }
204 }
205 .drdn-items.selection:empty {
206 border: none;
207 }
205 .drdn-items>span {color:#999;}
208 .drdn-items>span {color:#999;}
206
209
207 #project-jump.drdn {width:200px;display:inline-block;}
210 #project-jump.drdn {width:200px;display:inline-block;}
General Comments 0
You need to be logged in to leave comments. Login now