jquery: fix obsolete uses of success (#3548).

This commit is contained in:
evazion
2018-04-26 23:53:49 -05:00
parent f7748a2ed7
commit a49cb1c105
5 changed files with 11 additions and 14 deletions

View File

@@ -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, " "),