This commit is contained in:
Aevann1 2021-12-23 21:01:29 +02:00
parent ffc8ea4953
commit 7fbcadb5cc

View file

@ -26,7 +26,7 @@ function post_toast(url, reload, data) {
xhr.withCredentials=true;
xhr.onload = function() {
if (xhr.status >= 200 && xhr.status < 300) {
if (xhr.status >= 200 && xhr.status < 300 && !data["error"]) {
var myToast = new bootstrap.Toast(document.getElementById('toast-post-success'));
myToast.show();
try {