Rename tryToClosePopup to tryToClose

This commit is contained in:
the-djmaze 2022-09-06 19:23:07 +02:00
parent 8cdce0c302
commit c6176438ee
2 changed files with 5 additions and 5 deletions

View file

@ -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;
});

View file

@ -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">