partial fix for #1754 (artists)
This commit is contained in:
@@ -23,16 +23,19 @@
|
|||||||
},
|
},
|
||||||
method: "get",
|
method: "get",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
resp($.map(data, function(tag) {
|
resp($.map(data, function(artist) {
|
||||||
return {
|
return {
|
||||||
label: tag.name.replace(/_/g, " "),
|
label: artist.name.replace(/_/g, " "),
|
||||||
value: tag.name
|
value: artist.name
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
}).data("autocomplete")._renderItem = function(list, artist) {
|
||||||
|
var $link = $("<a class='tag-type-1'></a>").text(artist.label);
|
||||||
|
return $("<li></li>").data("item.autocomplete", artist).append($link).appendTo(list);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Danbooru.Artist.initialize_check_name_link = function() {
|
Danbooru.Artist.initialize_check_name_link = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user