This commit is contained in:
Aevann1 2022-01-16 07:26:34 +02:00
parent f4bc616394
commit e763df55cd
14 changed files with 18 additions and 18 deletions

View file

@ -30,7 +30,7 @@ function post_toast(url, reload, data) {
xhr.onload = function() {
let data
try {data = JSON.parse(xhr.response)}
catch(e) {}
catch(e) {console.log(e)}
if (xhr.status >= 200 && xhr.status < 300 && data && data['message']) {
document.getElementById('toast-post-success-text').innerText = data["message"];
new bootstrap.Toast(document.getElementById('toast-post-success')).show();