temporary quick n dirty fix

This commit is contained in:
Paul Liverman III 2018-04-24 17:57:45 -07:00
parent dbfa8280b2
commit 9d37c24dae

View File

@ -27,7 +27,8 @@ function new_task() {
}) })
.fail(function(request) { .fail(function(request) {
let input = $("input", template); 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("background-color", "red")
.css("color", "white"); .css("color", "white");
input.remove(); input.remove();
@ -47,7 +48,6 @@ function new_api_key() {
$("#new-api-key").before(template); $("#new-api-key").before(template);
}) })
.fail(function(request) { .fail(function(request) {
console.log(request);
$("code", template) $("code", template)
.css("background-color", "red") .css("background-color", "red")
.css("color", "white") .css("color", "white")