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 },
success: function (data) {
$('#staticBackdrop').modal('hide');
createNewToast(`<i class="bi bi-check2"></i> ${name} deleted successfully.`, "text-bg-success")
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")
}
confetti({
spread: 360,