fd
This commit is contained in:
parent
c816663ecc
commit
8728b664b6
1 changed files with 26 additions and 27 deletions
|
@ -277,8 +277,7 @@ function post_toast(url, callback, data) {
|
||||||
xhr.withCredentials=true;
|
xhr.withCredentials=true;
|
||||||
|
|
||||||
xhr.onload = function() {
|
xhr.onload = function() {
|
||||||
if (xhr.status==204) {}
|
if (xhr.status >= 200 && xhr.status < 300) {
|
||||||
else if (xhr.status >= 200 && xhr.status < 300) {
|
|
||||||
$('#toast-post-success').toast('dispose');
|
$('#toast-post-success').toast('dispose');
|
||||||
$('#toast-post-success').toast('show');
|
$('#toast-post-success').toast('show');
|
||||||
document.getElementById('toast-post-success-text').innerText = "Action successful!";
|
document.getElementById('toast-post-success-text').innerText = "Action successful!";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue