mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 07:27:04 +03:00
Centralize tryToClose() for all popups
This commit is contained in:
parent
fa15742edb
commit
c33dd8f856
5 changed files with 8 additions and 13 deletions
|
|
@ -167,7 +167,7 @@ const
|
|||
if (screenName && fireEvent('sm-show-screen', screenName + (subPart ? '/' + subPart : ''), 1)) {
|
||||
// Close all popups
|
||||
for (let vm of visiblePopups) {
|
||||
(false === vm.onClose()) || vm.close();
|
||||
vm.tryToClose();
|
||||
}
|
||||
|
||||
let vmScreen = screen(screenName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue