Fix #3799: Fetch source data link is broken

This commit is contained in:
evazion
2018-08-04 10:28:14 -05:00
parent 718e641f51
commit 8589d514dc

View File

@@ -138,13 +138,13 @@ Upload.fill_source_info = function(data) {
});
var link = $("<a>").attr("href", "/artists/new?" + new_artist_params).text("Create new artist");
$("#source-Artists").html(link);
$("#source-danbooru-artists").html(link);
} else {
var artistLinks = data.artists.map(function (artist) {
return $('<a class="tag-type-1">').attr("href", "/artists/" + artist.id).text(artist.name);
});
$("#source-Artists").html(artistLinks)
$("#source-danbooru-artists").html(artistLinks)
}
if (data.image_urls.length > 1) {
@@ -205,4 +205,4 @@ $(function() {
Upload.initialize_all();
});
export default Upload
export default Upload