mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Remove useless clearPopup() functions
This commit is contained in:
parent
ba895ba887
commit
2a7348081a
9 changed files with 20 additions and 82 deletions
|
|
@ -21,15 +21,6 @@ class AskPopupView extends AbstractViewPopup {
|
|||
this.bDisabeCloseOnEsc = true;
|
||||
}
|
||||
|
||||
clearPopup() {
|
||||
this.askDesc('');
|
||||
this.yesButton(i18n('POPUPS_ASK/BUTTON_YES'));
|
||||
this.noButton(i18n('POPUPS_ASK/BUTTON_NO'));
|
||||
|
||||
this.fYesAction = null;
|
||||
this.fNoAction = null;
|
||||
}
|
||||
|
||||
yesClick() {
|
||||
this.cancelCommand();
|
||||
|
||||
|
|
@ -52,21 +43,11 @@ class AskPopupView extends AbstractViewPopup {
|
|||
* @returns {void}
|
||||
*/
|
||||
onShow(askDesc, fYesFunc = null, fNoFunc = null, yesButton = '', noButton = '', isFocusYesOnShow = true) {
|
||||
this.clearPopup();
|
||||
|
||||
this.fYesAction = fYesFunc || null;
|
||||
this.fNoAction = fNoFunc || null;
|
||||
|
||||
this.askDesc(askDesc || '');
|
||||
|
||||
if (yesButton) {
|
||||
this.yesButton(yesButton);
|
||||
}
|
||||
|
||||
if (noButton) {
|
||||
this.noButton(noButton);
|
||||
}
|
||||
|
||||
this.yesButton(yesButton || i18n('POPUPS_ASK/BUTTON_YES'));
|
||||
this.noButton(noButton || i18n('POPUPS_ASK/BUTTON_NO'));
|
||||
this.fYesAction = fYesFunc;
|
||||
this.fNoAction = fNoFunc;
|
||||
this.bFocusYesOnShow = !!isFocusYesOnShow;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue