Close modals after submit
This commit is contained in:
parent
053e2cea0d
commit
49f1226f3a
5 changed files with 10 additions and 4 deletions
|
@ -74,6 +74,12 @@ let StatusCache = new class {
|
|||
.forEach(node => window.localStorage.removeItem(node.dataset.cacheDraft));
|
||||
|
||||
// Close modals
|
||||
let modal = form.closest(".modal.is-active");
|
||||
if (!!modal) {
|
||||
modal.getElementsByClassName("modal-close")[0].click();
|
||||
}
|
||||
|
||||
// Update buttons
|
||||
}
|
||||
}();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue