diff --git a/static/index.js b/static/index.js index ea9acd4..7443c8d 100644 --- a/static/index.js +++ b/static/index.js @@ -27,7 +27,8 @@ function new_task() { }) .fail(function(request) { let input = $("input", template); - input.after("ERROR:" + request.responseJSON.errors.join(" ")) + input.after("ERROR:" + request.responseJSON.errors.join(" ")); + input.next() .css("background-color", "red") .css("color", "white"); input.remove(); @@ -47,7 +48,6 @@ function new_api_key() { $("#new-api-key").before(template); }) .fail(function(request) { - console.log(request); $("code", template) .css("background-color", "red") .css("color", "white")