mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +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;
|
||||
|
||||
|
|
@ -724,7 +724,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
this.saveCommand();
|
||||
}
|
||||
|
||||
this.tryToClosePopup();
|
||||
this.tryToClose();
|
||||
}
|
||||
|
||||
contactsCommand() {
|
||||
|
|
@ -1183,7 +1183,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
}, 100);
|
||||
}
|
||||
|
||||
tryToClosePopup() {
|
||||
tryToClose() {
|
||||
if (AskPopupView.hidden()) {
|
||||
if (this.bSkipNextHide || (this.isEmptyForm() && !this.draftUid())) {
|
||||
this.close();
|
||||
|
|
@ -1331,7 +1331,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
});
|
||||
|
||||
addShortcut('escape,close', 'shift', ScopeCompose, () => {
|
||||
this.tryToClosePopup();
|
||||
this.tryToClose();
|
||||
return false;
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
</menu>
|
||||
</div>
|
||||
<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>
|
||||
</header>
|
||||
<div class="modal-body">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue