Skip to content

Commit

Permalink
Fixes #22540 - auto-focus search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
sean797 authored and dLobatog committed Feb 14, 2018
1 parent cb09f0d commit 45f16ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/common/_searchbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
id: 'search-form',
onsubmit: 'return tfm.tools.updateTable(this);' do %>
<div class="input-group">
<%= auto_complete_search(:search, params[:search].try(:squeeze," "), :placeholder => _("Filter") + ' ...').html_safe %>
<%= auto_complete_search(:search, params[:search].try(:squeeze," "), :placeholder => _("Filter") + ' ...', :autofocus => true).html_safe %>
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<%= icon_text("search", content_tag(:span,_("Search"), :class=>"hidden-xs")) %>
Expand Down

0 comments on commit 45f16ec

Please sign in to comment.