mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Clean error message on successful response
Signed-off-by: Alejandro Villarreal <alex@alexvy86.com>
This commit is contained in:
parent
0651f1bcd4
commit
e422f4154f
1 changed files with 2 additions and 0 deletions
|
@ -329,6 +329,7 @@ setHeader();
|
||||||
setTimeout(function(){window.location.reload(1);}, 10000);
|
setTimeout(function(){window.location.reload(1);}, 10000);
|
||||||
$("#bpOutput").removeClass("add");
|
$("#bpOutput").removeClass("add");
|
||||||
$("#bpOutput").addClass("success");
|
$("#bpOutput").addClass("success");
|
||||||
|
$("#bpOutput").html("");
|
||||||
} else {
|
} else {
|
||||||
$("#bpOutput").removeClass("add");
|
$("#bpOutput").removeClass("add");
|
||||||
$("#bpOutput").addClass("error");
|
$("#bpOutput").addClass("error");
|
||||||
|
@ -338,6 +339,7 @@ setHeader();
|
||||||
error: function(jqXHR, exception) {
|
error: function(jqXHR, exception) {
|
||||||
$("#bpOutput").removeClass("add");
|
$("#bpOutput").removeClass("add");
|
||||||
$("#bpOutput").addClass("exception");
|
$("#bpOutput").addClass("exception");
|
||||||
|
$("#bpOutput").html("");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue