Autofocus search field

This commit is contained in:
Andreas Haller 2014-11-19 23:01:18 +01:00
parent 82e61eb651
commit 6bda241d8b

View file

@ -1,6 +1,6 @@
div
= form_tag(search_path, method: :get)
= text_field_tag(:q, params[:q], placeholder: 'Suche…')
= text_field_tag(:q, params[:q], placeholder: 'Suche…', autofocus: true)
.clearfix
- if @result