From 8efb3ab9af7363c43652419e0a6795d635fde886 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 26 Sep 2021 12:24:00 +0200 Subject: [PATCH] fds --- files/templates/ban_modal.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/templates/ban_modal.html b/files/templates/ban_modal.html index b47cd3924d..77c9d94964 100644 --- a/files/templates/ban_modal.html +++ b/files/templates/ban_modal.html @@ -14,8 +14,9 @@ xhr.withCredentials = true; xhr.onload = function(){ - document.getElementById('toast-post-success').toast('dispose'); - document.getElementById('toast-post-success').toast('show'); + var myToast = new bootstrap.Toast(document.getElementById('toast-post-success')); + myToast.hide(); + myToast.show(); document.getElementById('toast-post-success-text').innerHTML = `@${name} banned`; }