fix bug where delete would reload the page even if new data loading is enabled

This commit is contained in:
Sören Oesterwind 2023-07-09 23:35:59 +02:00
parent 5aeec6fb28
commit ff07698f16

View File

@ -71,7 +71,12 @@ function deleteEntryNxt(id, route, name) {
data: { id: id }, data: { id: id },
success: function (data) { success: function (data) {
$('#staticBackdrop').modal('hide'); $('#staticBackdrop').modal('hide');
if(isNewDataLoaderAvailable()) {
createNewToast(`<i class="bi bi-check2"></i> ${name} deleted successfully.`, "text-bg-success", undefined, false)
} else {
createNewToast(`<i class="bi bi-check2"></i> ${name} deleted successfully.`, "text-bg-success") createNewToast(`<i class="bi bi-check2"></i> ${name} deleted successfully.`, "text-bg-success")
}
confetti({ confetti({
spread: 360, spread: 360,