Fix #3626: Artist creation page doesn't autocomplete the name anymore.

This commit is contained in:
evazion
2018-04-12 16:23:59 -05:00
parent 5546d9e98b
commit af9a09c2cb
3 changed files with 8 additions and 15 deletions

View File

@@ -125,9 +125,11 @@
if (data.artists.length === 0) {
var new_artist_params = $.param({
name: data.unique_id,
other_names: data.artist_name,
urls: $.unique([data.profile_url, data.normalized_for_artist_finder_url]).join("\n")
artist: {
name: data.unique_id,
other_names: data.artist_name,
url_string: $.unique([data.profile_url, data.normalized_for_artist_finder_url]).join("\n")
}
});
var link = $("<a>").attr("href", "/artists/new?" + new_artist_params).text("Create new artist");