Merge branch 'master' of github.com:ornicar/lila
* 'master' of github.com:ornicar/lila: Update scalafmt-core to 2.5.3 Move 2fa clear/focus into raf to match .show()
This commit is contained in:
commit
acd4bdc39a
|
@ -1,4 +1,4 @@
|
|||
version = "2.5.2"
|
||||
version = "2.5.3"
|
||||
align = more
|
||||
maxColumn = 110
|
||||
spaces.inImportCurlyBraces = true
|
||||
|
|
|
@ -12,7 +12,9 @@ function load($f) {
|
|||
if (res === 'MissingTotpToken' || res === 'InvalidTotpToken') {
|
||||
$f.find('.one-factor').hide();
|
||||
$f.find('.two-factor').show();
|
||||
$f.find('.two-factor input').val('').focus();
|
||||
lichess.raf(function() {
|
||||
$f.find('.two-factor input').val('').focus();
|
||||
});
|
||||
$f.find('.submit').attr('disabled', false);
|
||||
if (res === 'InvalidTotpToken') $f.find('.two-factor .error').show();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue