* Move all autocomplete code to autocomplete.js. * Mark autocompleted fields with `data-autocomplete="<type>"` attributes, instead of hardcoding input field IDs in the javascript.
4 lines
198 B
Plaintext
4 lines
198 B
Plaintext
<%= form_tag(wiki_pages_path, :method => :get) do %>
|
|
<%= text_field "search", "title", id: "quick_search_title", placeholder: "Search wiki pages", data: { autocomplete: "wiki-page" } %>
|
|
<% end %>
|