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:
Thibault Duplessis 2020-05-26 18:39:58 -06:00
commit acd4bdc39a
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
version = "2.5.2"
version = "2.5.3"
align = more
maxColumn = 110
spaces.inImportCurlyBraces = true

View file

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