Skip to content

Commit

Permalink
Turn autocomplete back on.
Browse files Browse the repository at this point in the history
I think autocomplete is too useful a feature to turn off just for
cosmetic reasons.
  • Loading branch information
monfresh committed Jul 30, 2014
1 parent 4af5ce3 commit 0531f89
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/component/search/_agency.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
= content_tag :div, '', class: 'filter-input-group clearable' do
= button_tag(type: 'submit', name: nil, class: 'button-icon') do
= content_tag :i, '', class: 'fa fa-institution'
= search_field_tag :org_name, params[:org_name], autocomplete: 'off', placeholder: t('placeholders.agency_search')
= search_field_tag :org_name, params[:org_name], placeholder: t('placeholders.agency_search')
2 changes: 1 addition & 1 deletion app/views/component/search/_aside.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
%div.input-search-small.clearable
= button_tag(type: 'submit', name: nil, id: 'button-search', class: 'button-icon', title: 'Search') do
%i{ class: 'fa fa-search' }
= search_field_tag :keyword, params[:keyword], autocomplete: 'off', placeholder: t('placeholders.results_page_keyword_search')
= search_field_tag :keyword, params[:keyword], placeholder: t('placeholders.results_page_keyword_search')

%section#search-options
= render 'component/search/location'
Expand Down
2 changes: 1 addition & 1 deletion app/views/component/search/_box.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
%section#keyword-search-box>
= label_tag 'keyword', t('labels.homepage_search')
%div.input-search-big
= search_field_tag :keyword, params[:keyword], autocomplete: 'off', placeholder: t('placeholders.homepage_keyword_search')
= search_field_tag :keyword, params[:keyword], placeholder: t('placeholders.homepage_keyword_search')

= button_tag(type: 'submit', name: nil, id: 'button-search', class: 'button-icon', title: 'Search') do
%i{ class: 'fa fa-search' }
Expand Down
2 changes: 1 addition & 1 deletion app/views/component/search/_location.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
= content_tag :div, '', class: 'filter-input-group clearable' do
= button_tag(type: 'submit', name: nil, class: 'button-icon') do
= content_tag :i, '', class: 'fa fa-map-marker'
= search_field_tag :location, params[:location], autocomplete: 'off', placeholder: t('placeholders.address_search')
= search_field_tag :location, params[:location], placeholder: t('placeholders.address_search')
= render 'component/search/geolocate', context_class: 'input-search-filter-option'
2 changes: 1 addition & 1 deletion config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
#
# Include Internet Explorer polyfills.
Rails.application.config.assets.precompile << %w(vendor.js ie8.js ie9.js)
Rails.application.config.assets.precompile += %w(vendor.js ie8.js ie9.js)

0 comments on commit 0531f89

Please sign in to comment.