summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-05 14:09:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-05 14:09:21 +0000
commitb959b53dd2f0788e1134ba886b841dbedcb5443f (patch)
tree712f4e7b20d47eecac03cfe45d2756b8c0914e02
parenta096c3cd63acea2c1476c5e02714db1f8a90c830 (diff)
downloadredmine-b959b53dd2f0788e1134ba886b841dbedcb5443f.tar.gz
redmine-b959b53dd2f0788e1134ba886b841dbedcb5443f.zip
code layout clean up ApplicationHelper#render_project_jump_box
git-svn-id: http://svn.redmine.org/redmine/trunk@18908 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/helpers/application_helper.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 122212766..a2772fd26 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -510,10 +510,13 @@ module ApplicationHelper
end
text ||= l(:label_jump_to_a_project)
url = autocomplete_projects_path(:format => 'js', :jump => current_menu_item)
-
trigger = content_tag('span', text, :class => 'drdn-trigger')
- q = text_field_tag('q', '', :id => 'projects-quick-search', :class => 'autocomplete', :data => {:automcomplete_url => url}, :autocomplete => 'off')
- all = link_to(l(:label_project_all), projects_path(:jump => current_menu_item), :class => (@project.nil? && controller.class.main_menu ? 'selected' : nil))
+ q = text_field_tag('q', '', :id => 'projects-quick-search',
+ :class => 'autocomplete',
+ :data => {:automcomplete_url => url},
+ :autocomplete => 'off')
+ all = link_to(l(:label_project_all), projects_path(:jump => current_menu_item),
+ :class => (@project.nil? && controller.class.main_menu ? 'selected' : nil))
content =
content_tag('div',
content_tag('div', q, :class => 'quick-search') +