summaryrefslogtreecommitdiffstats
path: root/app/views/layouts
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-21 17:07:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-21 17:07:18 +0000
commit07aa3c55bdc72a7ab3565c5903a4560b6785aac5 (patch)
tree76bc2e808f42389512284541f45d4ffa3e16c673 /app/views/layouts
parent739e11702a810b0a84959679a634cf72f75815e6 (diff)
downloadredmine-07aa3c55bdc72a7ab3565c5903a4560b6785aac5.tar.gz
redmine-07aa3c55bdc72a7ab3565c5903a4560b6785aac5.zip
Contextual quick search (#3263).
Eg. when viewing issues, the quick search will search issues only. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2943 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/base.rhtml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml
index 471953a66..d8fdcf0d5 100644
--- a/app/views/layouts/base.rhtml
+++ b/app/views/layouts/base.rhtml
@@ -31,6 +31,7 @@
<div id="header">
<div id="quick-search">
<% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
+ <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
<%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
<%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
<% end %>