diff options
-rw-r--r-- | app/views/search/index.rhtml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/search/index.rhtml b/app/views/search/index.rhtml index 66b89743f..082527373 100644 --- a/app/views/search/index.rhtml +++ b/app/views/search/index.rhtml @@ -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 %>
|