sdffds
This commit is contained in:
parent
ffc8ea4953
commit
7fbcadb5cc
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue