temporary quick n dirty fix
This commit is contained in:
parent
dbfa8280b2
commit
9d37c24dae
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user