jquery: fix obsolete uses of success (#3548).
This commit is contained in:
@@ -577,7 +577,7 @@
|
||||
Danbooru.Post.initialize_saved_searches = function() {
|
||||
$("#saved_search_labels").autocomplete({
|
||||
source: function(req, resp) {
|
||||
Danbooru.SavedSearch.labels(req.term).success(function(labels) {
|
||||
Danbooru.SavedSearch.labels(req.term).then(function(labels) {
|
||||
resp(labels.map(function(label) {
|
||||
return {
|
||||
label: label.replace(/_/g, " "),
|
||||
|
||||
Reference in New Issue
Block a user