This commit is contained in:
Aevann1 2022-02-21 02:41:37 +02:00
parent fdd50822e5
commit 1a68e03dbd
8 changed files with 17 additions and 18 deletions

View file

@ -165,6 +165,7 @@ function post_reply(id){
try{
let data = JSON.parse(xhr.response)
document.getElementById('toast-post-error-text').innerText = data["error"];
bs_trigger()
}
catch(e) {console.log(e)}
bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();
@ -240,6 +241,7 @@ function post_comment(fullname){
try{
let data = JSON.parse(xhr.response)
document.getElementById('toast-post-error-text').innerText = data["error"];
bs_trigger()
}
catch(e) {console.log(e)}
bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show();