force close modals on collection or record deletion
This commit is contained in:
@@ -976,7 +976,7 @@ function deleteDropdownItem(data, modalSettings) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
app.modals.close(collectionModal);
|
app.modals.close(collectionModal, true);
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
local.nameConfirm = "";
|
local.nameConfirm = "";
|
||||||
|
|||||||
@@ -1076,7 +1076,7 @@ function deleteDropdownItem(collection, data, modalSettings) {
|
|||||||
`Do you really want to delete the selected record?`,
|
`Do you really want to delete the selected record?`,
|
||||||
async () => {
|
async () => {
|
||||||
await deleteRecord();
|
await deleteRecord();
|
||||||
app.modals.close(e.target.closest(".modal"));
|
app.modals.close(e.target.closest(".modal"), true);
|
||||||
},
|
},
|
||||||
null,
|
null,
|
||||||
{ yesButton: "Delete record" },
|
{ yesButton: "Delete record" },
|
||||||
|
|||||||
Reference in New Issue
Block a user