From e689007a0c1b11da0468953f721df030a2beb60a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 26 Sep 2021 11:32:06 +0200 Subject: [PATCH] fds --- files/templates/award_modal.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/templates/award_modal.html b/files/templates/award_modal.html index 89a46d7cd..2d0f860a7 100644 --- a/files/templates/award_modal.html +++ b/files/templates/award_modal.html @@ -11,8 +11,8 @@ xhr.onload = function() { if (xhr.status==204) {} else if (xhr.status >= 200 && xhr.status < 300) { - document.getElementById('toast-post-success').toast('dispose'); - document.getElementById('toast-post-success').toast('show'); + $('#toast-post-success').toast('dispose'); + $('#toast-post-success').toast('show'); document.getElementById('toast-post-success-text').innerText = JSON.parse(xhr.response)["message"]; callback(xhr) return true @@ -22,8 +22,8 @@ } else { data=JSON.parse(xhr.response); - document.getElementById('toast-post-error').toast('dispose'); - document.getElementById('toast-post-error').toast('show'); + $('#toast-post-error').toast('dispose'); + $('#toast-post-error').toast('show'); document.getElementById('toast-post-error-text').innerText = data["error"]; return false