Commit 0803e6fc authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Search field automatically focused.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@707 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1b2e8054
......@@ -2,7 +2,8 @@
<div class="box">
<% form_tag({}, :method => :get) do %>
<p><%= text_field_tag 'q', @question, :size => 30 %>
<p><%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>
<%= javascript_tag "Field.focus('search-input')" %>
<% if @project %>
<%= check_box_tag 'scope[]', 'issues', (@scope.include? 'issues') %> <label><%= l(:label_issue_plural) %></label>
......@@ -62,4 +63,4 @@
</p></li>
<% end %>
</ul>
<% end %>
\ No newline at end of file
<% end %>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment