Search field automatically focused.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@707 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1b2e80545a
commit
0803e6fcaa
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<% form_tag({}, :method => :get) do %>
|
<% 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 %>
|
<% if @project %>
|
||||||
<%= check_box_tag 'scope[]', 'issues', (@scope.include? 'issues') %> <label><%= l(:label_issue_plural) %></label>
|
<%= check_box_tag 'scope[]', 'issues', (@scope.include? 'issues') %> <label><%= l(:label_issue_plural) %></label>
|
||||||
@ -62,4 +63,4 @@
|
|||||||
</p></li>
|
</p></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user