diff --git a/app/views/search/_index.html.erb b/app/views/search/_index.html.erb index 40b4b8bf..b77fae66 100644 --- a/app/views/search/_index.html.erb +++ b/app/views/search/_index.html.erb @@ -1,7 +1,7 @@
<%= form_tag(search_results_path, class: 'navbar-form') do %>
- <%= text_field_tag(:search, params[:search], class: 'form-control', autofocus: true) %> + <%= text_field_tag(:search, params[:search], class: 'form-control') %>
<%= button_tag(type: 'submit', class: 'btn pull-right') do%> <%= icon('search', class: 'hidden-xs') %> diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb index 0570af1c..74a087ee 100644 --- a/app/views/search/index.html.erb +++ b/app/views/search/index.html.erb @@ -5,7 +5,7 @@ <%= form_tag(search_results_path) do %>
<%= 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') %>
<%= submit_tag t('common.search'), class: 'btn btn-primary pull-right' %> <% end %> diff --git a/app/views/todos/_new_todo_form.html.erb b/app/views/todos/_new_todo_form.html.erb index b9bb4b4a..4f8ef0c2 100644 --- a/app/views/todos/_new_todo_form.html.erb +++ b/app/views/todos/_new_todo_form.html.erb @@ -12,7 +12,7 @@ <%= image_tag("blank.png", :title =>t('todos.star_action'), :class => "todo_star", :style=> "float: right")%> - <%= t.text_field("description", "size" => 30, "maxlength" => 100, "autocomplete" => "off", :autofocus => 1) %> + <%= t.text_field("description", "size" => 30, "maxlength" => 100, "autocomplete" => "off", :autofocus => true) %> <%= t.text_area("notes", "cols" => 29, "rows" => 6) %>