From ff07698f16895112cec35cd090e6216e5c4b6069 Mon Sep 17 00:00:00 2001 From: grey Date: Sun, 9 Jul 2023 23:35:59 +0200 Subject: [PATCH] fix bug where delete would reload the page even if new data loading is enabled --- static/js/formHandler.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/formHandler.js b/static/js/formHandler.js index 47fdbeb..42e006a 100644 --- a/static/js/formHandler.js +++ b/static/js/formHandler.js @@ -71,7 +71,12 @@ function deleteEntryNxt(id, route, name) { data: { id: id }, success: function (data) { $('#staticBackdrop').modal('hide'); - createNewToast(` ${name} deleted successfully.`, "text-bg-success") + if(isNewDataLoaderAvailable()) { + createNewToast(` ${name} deleted successfully.`, "text-bg-success", undefined, false) + } else { + createNewToast(` ${name} deleted successfully.`, "text-bg-success") + } + confetti({ spread: 360,