saved searches: fix broken query/label autocomplete.

This commit is contained in:
evazion
2018-04-26 23:55:13 -05:00
parent a49cb1c105
commit 72664e0105
2 changed files with 2 additions and 2 deletions

View File

@@ -575,7 +575,7 @@
};
Danbooru.Post.initialize_saved_searches = function() {
$("#saved_search_labels").autocomplete({
$("#new_saved_search #saved_search_label_string").autocomplete({
source: function(req, resp) {
Danbooru.SavedSearch.labels(req.term).then(function(labels) {
resp(labels.map(function(label) {

View File

@@ -2,7 +2,7 @@
<div id="save-search-dialog" title="Save Search" style="display: none;">
<%= simple_form_for(SavedSearch.new, remote: true) do |f| %>
<%= f.input :query, as: :string, input_html: { value: params[:tags] } %>
<%= f.input :query, as: :string, input_html: { value: params[:tags], data: { autocomplete: "tag-query" } } %>
<%= f.input :label_string, label: "Labels", hint: "A list of tags to help categorize this search. Space delimited." %>
<%= f.input :disable_labels, label: "Don't show this dialog again", as: :boolean %>
<% end %>