fix bug where delete would reload the page even if new data loading is enabled
This commit is contained in:
parent
5aeec6fb28
commit
ff07698f16
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user