mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
replaced knockout hasfocus with autofocus=""
This commit is contained in:
parent
650e962fdf
commit
b4ab5b891a
12 changed files with 18 additions and 50 deletions
|
|
@ -20,9 +20,7 @@ class AccountPopupView extends AbstractViewPopup {
|
|||
|
||||
submitRequest: false,
|
||||
submitError: '',
|
||||
submitErrorAdditional: '',
|
||||
|
||||
emailFocus: false
|
||||
submitErrorAdditional: ''
|
||||
});
|
||||
|
||||
this.email.subscribe(() => this.emailError(false));
|
||||
|
|
@ -84,10 +82,6 @@ class AccountPopupView extends AbstractViewPopup {
|
|||
this.email(account.email);
|
||||
}
|
||||
}
|
||||
|
||||
onShowWithDelay() {
|
||||
this.emailFocus(true);
|
||||
}
|
||||
}
|
||||
|
||||
export { AccountPopupView, AccountPopupView as default };
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@ class AdvancedSearchPopupView extends AbstractViewPopup {
|
|||
super('AdvancedSearch');
|
||||
|
||||
this.addObservables({
|
||||
fromFocus: false,
|
||||
|
||||
from: '',
|
||||
to: '',
|
||||
subject: '',
|
||||
|
|
@ -142,18 +140,12 @@ class AdvancedSearchPopupView extends AbstractViewPopup {
|
|||
this.hasAttachment(false);
|
||||
this.starred(false);
|
||||
this.unseen(false);
|
||||
|
||||
this.fromFocus(true);
|
||||
}
|
||||
|
||||
onShow(search) {
|
||||
this.clearPopup();
|
||||
this.parseSearchStringValue(search);
|
||||
}
|
||||
|
||||
onShowWithDelay() {
|
||||
this.fromFocus(true);
|
||||
}
|
||||
}
|
||||
|
||||
export { AdvancedSearchPopupView, AdvancedSearchPopupView as default };
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ class FolderCreatePopupView extends AbstractViewPopup {
|
|||
|
||||
this.addObservables({
|
||||
folderName: '',
|
||||
folderNameFocused: false,
|
||||
|
||||
selectedParentValue: UNUSED_OPTION_VALUE
|
||||
});
|
||||
|
|
@ -59,22 +58,17 @@ class FolderCreatePopupView extends AbstractViewPopup {
|
|||
}
|
||||
|
||||
simpleFolderNameValidation(sName) {
|
||||
return /^[^\\/]+$/g.test(sName.trim());
|
||||
return /^[^\\/]+$/g.test(sName);
|
||||
}
|
||||
|
||||
clearPopup() {
|
||||
this.folderName('');
|
||||
this.selectedParentValue('');
|
||||
this.folderNameFocused(false);
|
||||
}
|
||||
|
||||
onShow() {
|
||||
this.clearPopup();
|
||||
}
|
||||
|
||||
onShowWithDelay() {
|
||||
this.folderNameFocused(true);
|
||||
}
|
||||
}
|
||||
|
||||
export { FolderCreatePopupView, FolderCreatePopupView as default };
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ class NewOpenPgpKeyPopupView extends AbstractViewPopup {
|
|||
|
||||
this.addObservables({
|
||||
email: '',
|
||||
emailFocus: '',
|
||||
emailError: false,
|
||||
|
||||
name: '',
|
||||
|
|
@ -101,10 +100,6 @@ class NewOpenPgpKeyPopupView extends AbstractViewPopup {
|
|||
onShow() {
|
||||
this.clearPopup();
|
||||
}
|
||||
|
||||
onShowWithDelay() {
|
||||
this.emailFocus(true);
|
||||
}
|
||||
}
|
||||
|
||||
export { NewOpenPgpKeyPopupView, NewOpenPgpKeyPopupView as default };
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ class TemplatePopupView extends AbstractViewPopup {
|
|||
|
||||
name: '',
|
||||
nameError: false,
|
||||
nameFocus: false,
|
||||
|
||||
body: '',
|
||||
bodyLoading: false,
|
||||
|
|
@ -144,10 +143,6 @@ class TemplatePopupView extends AbstractViewPopup {
|
|||
this.editorSetBody('');
|
||||
}
|
||||
}
|
||||
|
||||
onShowWithDelay() {
|
||||
this.nameFocus(true);
|
||||
}
|
||||
}
|
||||
|
||||
export { TemplatePopupView, TemplatePopupView as default };
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ class TwoFactorTestPopupView extends AbstractViewPopup {
|
|||
|
||||
this.addObservables({
|
||||
code: '',
|
||||
codeFocused: false,
|
||||
codeStatus: null,
|
||||
|
||||
testing: false
|
||||
|
|
@ -36,7 +35,6 @@ class TwoFactorTestPopupView extends AbstractViewPopup {
|
|||
|
||||
clearPopup() {
|
||||
this.code('');
|
||||
this.codeFocused(false);
|
||||
this.codeStatus(null);
|
||||
this.testing(false);
|
||||
|
||||
|
|
@ -48,10 +46,6 @@ class TwoFactorTestPopupView extends AbstractViewPopup {
|
|||
|
||||
this.koTestedTrigger = koTestedTrigger;
|
||||
}
|
||||
|
||||
onShowWithDelay() {
|
||||
this.codeFocused(true);
|
||||
}
|
||||
}
|
||||
|
||||
export { TwoFactorTestPopupView, TwoFactorTestPopupView as default };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue