mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Rename tryToClosePopup to tryToClose
This commit is contained in:
parent
8cdce0c302
commit
c6176438ee
2 changed files with 5 additions and 5 deletions
|
|
@ -326,7 +326,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
this.tryToClosePopup = this.tryToClosePopup.debounce(200);
|
this.tryToClose = this.tryToClose.debounce(200);
|
||||||
|
|
||||||
this.iTimer = 0;
|
this.iTimer = 0;
|
||||||
|
|
||||||
|
|
@ -724,7 +724,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
||||||
this.saveCommand();
|
this.saveCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.tryToClosePopup();
|
this.tryToClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
contactsCommand() {
|
contactsCommand() {
|
||||||
|
|
@ -1183,7 +1183,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
tryToClosePopup() {
|
tryToClose() {
|
||||||
if (AskPopupView.hidden()) {
|
if (AskPopupView.hidden()) {
|
||||||
if (this.bSkipNextHide || (this.isEmptyForm() && !this.draftUid())) {
|
if (this.bSkipNextHide || (this.isEmptyForm() && !this.draftUid())) {
|
||||||
this.close();
|
this.close();
|
||||||
|
|
@ -1331,7 +1331,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
||||||
});
|
});
|
||||||
|
|
||||||
addShortcut('escape,close', 'shift', ScopeCompose, () => {
|
addShortcut('escape,close', 'shift', ScopeCompose, () => {
|
||||||
this.tryToClosePopup();
|
this.tryToClose();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
</menu>
|
</menu>
|
||||||
</div>
|
</div>
|
||||||
<a class="minimize-custom" data-bind="click: skipCommand" data-i18n="[title]COMPOSE/BUTTON_MINIMIZE"></a>
|
<a class="minimize-custom" data-bind="click: skipCommand" data-i18n="[title]COMPOSE/BUTTON_MINIMIZE"></a>
|
||||||
<a class="close" data-bind="click: tryToClosePopup" data-i18n="[title]GLOBAL/CANCEL">×</a>
|
<a class="close" data-bind="click: tryToClose" data-i18n="[title]GLOBAL/CANCEL">×</a>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue