autocomplete: add saved search label autocomplete in more places.

This commit is contained in:
evazion
2019-11-12 20:24:24 -06:00
parent cc98f3b7cc
commit f9881e5414
6 changed files with 25 additions and 38 deletions

View File

@@ -6,13 +6,6 @@ SavedSearch.initialize_all = function() {
}
}
SavedSearch.labels = function(term) {
return $.getJSON("/saved_searches/labels", {
"search[label]": term + "*",
"limit": 10
});
}
$(SavedSearch.initialize_all);
export default SavedSearch