This commit is contained in:
Aevann1 2021-08-11 19:05:27 +02:00
parent c816663ecc
commit 8728b664b6

View file

@ -277,8 +277,7 @@ function post_toast(url, callback, data) {
xhr.withCredentials=true;
xhr.onload = function() {
if (xhr.status==204) {}
else if (xhr.status >= 200 && xhr.status < 300) {
if (xhr.status >= 200 && xhr.status < 300) {
$('#toast-post-success').toast('dispose');
$('#toast-post-success').toast('show');
document.getElementById('toast-post-success-text').innerText = "Action successful!";
@ -307,7 +306,7 @@ function post_toast(url, callback, data) {
xhr.send(form);
}
}
// Search Icon