From 67ba8ecedc5de5e862f12fdbfbd0c9268d7653d1 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 28 Aug 2020 16:15:32 +0100 Subject: [PATCH] fixed notification clearing bug --- public/js/misc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/misc.js b/public/js/misc.js index 9cf67d245..267b01b85 100644 --- a/public/js/misc.js +++ b/public/js/misc.js @@ -117,20 +117,20 @@ function showNotification(text, time) { let noti = $(".notification"); noti.text(text); noti.css("top", `-${noti.outerHeight()}px`); - noti.stop(true, true).animate( + noti.stop(true, false).animate( { top: "1rem", }, 250, "swing", () => { - noti.stop(true, true).animate( + noti.stop(true, false).animate( { opacity: 1, }, time, () => { - noti.stop(true, true).animate( + noti.stop(true, false).animate( { top: `-${noti.outerHeight()}px`, },