mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Removed: KnockoutJS 'hasFocus:' because HTML5 has autofocus=""
Knoin.js now searches for [autofocus] and handles it
This commit is contained in:
parent
226f77e392
commit
996723a486
18 changed files with 60 additions and 113 deletions
|
|
@ -37,7 +37,7 @@ class LoginAdminView extends AbstractViewNext {
|
|||
this.loginErrorAnimation = ko.observable(false).extend({ 'falseTimeout': 500 });
|
||||
this.passwordErrorAnimation = ko.observable(false).extend({ 'falseTimeout': 500 });
|
||||
|
||||
this.loginFocus = ko.observable(false);
|
||||
// this.loginFocus = ko.observable(false);
|
||||
|
||||
this.formHidden = ko.observable(false);
|
||||
|
||||
|
|
@ -96,14 +96,9 @@ class LoginAdminView extends AbstractViewNext {
|
|||
|
||||
onShow() {
|
||||
routeOff();
|
||||
|
||||
setTimeout(() => {
|
||||
this.loginFocus(true);
|
||||
}, 100);
|
||||
}
|
||||
|
||||
onHide() {
|
||||
this.loginFocus(false);
|
||||
}
|
||||
|
||||
onBuild() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue