fixes #1708
This commit is contained in:
@@ -10,12 +10,17 @@
|
||||
Danbooru.Artist.initialize_check_name_link = function() {
|
||||
$("#check-name-link").click(function(e) {
|
||||
var artist_name = $("#artist_name").val();
|
||||
|
||||
if (artist_name.length === 0) {
|
||||
$("#check-name-result").html("OK");
|
||||
}
|
||||
|
||||
$.get("/artists.json?name=" + artist_name,
|
||||
function(data) {
|
||||
if (data.length) {
|
||||
$("#check-name-result").html("Taken")
|
||||
$("#check-name-result").html("Taken");
|
||||
} else {
|
||||
$("#check-name-result").html("OK")
|
||||
$("#check-name-result").html("OK");
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user