mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Remove the autofocus from the search fields
This commit is contained in:
parent
fcbb38e803
commit
f08d596a4e
3 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<div class="container-fluid">
|
||||
<%= form_tag(search_results_path, class: 'navbar-form') do %>
|
||||
<div class="input-group">
|
||||
<%= text_field_tag(:search, params[:search], class: 'form-control', autofocus: true) %>
|
||||
<%= text_field_tag(:search, params[:search], class: 'form-control') %>
|
||||
<div class="input-group-btn">
|
||||
<%= button_tag(type: 'submit', class: 'btn pull-right') do%>
|
||||
<%= icon('search', class: 'hidden-xs') %>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<%= form_tag(search_results_path) do %>
|
||||
<div class="form-group">
|
||||
<%= label_tag 'Search', nil, class: 'sr-only' %>
|
||||
<%= text_field_tag(:search, params[:search], class: 'form-control', autofocus: true) %>
|
||||
<%= text_field_tag(:search, params[:search], class: 'form-control') %>
|
||||
</div>
|
||||
<%= submit_tag t('common.search'), class: 'btn btn-primary pull-right' %>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<label for="todo_description" style="float:left"><%= Todo.human_attribute_name('description') %></label>
|
||||
<a href="#" id="new_todo_starred_link" class="undecorated_link" ><%= image_tag("blank.png", :title =>t('todos.star_action'), :class => "todo_star", :style=> "float: right")%></a>
|
||||
<%= t.text_field("description", "size" => 30, "maxlength" => 100, "autocomplete" => "off", :autofocus => 1) %>
|
||||
<%= t.text_field("description", "size" => 30, "maxlength" => 100, "autocomplete" => "off", :autofocus => true) %>
|
||||
|
||||
<label for="todo_notes"><%= Todo.human_attribute_name('notes') %></label>
|
||||
<%= t.text_area("notes", "cols" => 29, "rows" => 6) %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue