Remove the autofocus from the search fields

This commit is contained in:
Matt Rogers 2019-05-04 10:17:43 -05:00
parent fcbb38e803
commit f08d596a4e
No known key found for this signature in database
GPG key ID: 605D017C07EB4316
3 changed files with 3 additions and 3 deletions

View file

@ -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') %>

View file

@ -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 %>

View file

@ -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) %>