Merge pull request #3478 from BrokenEagle/fix-post-replacement-autocomplete

Add autocomplete to tags input on post replacements
This commit is contained in:
Albert Yi
2017-12-29 15:53:14 -08:00
committed by GitHub

View File

@@ -6,7 +6,7 @@
<%= simple_form_for(:search, url: post_replacements_path, method: :get, defaults: { required: false }, html: { class: "inline-form" }) do |f| %>
<%= f.input :creator_name, label: "Replacer", input_html: { value: params[:search][:creator_name] } %>
<%= f.input :post_tags_match, label: "Tags", input_html: { value: params[:search][:post_tags_match] } %>
<%= f.input :post_tags_match, label: "Tags", input_html: { value: params[:search][:post_tags_match], data: { autocomplete: "tag-query" } } %>
<%= f.submit "Search" %>
<% end %>