From 6ec7e49255f2e8a79b331f2262d06da139b194aa Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Sun, 19 Feb 2017 13:56:23 -0600 Subject: [PATCH] automatically focus the password field when it is shown. Fixes antergos/web-greeter#118 --- build/utils.sh | 2 +- themes/default/js/greeter.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/utils.sh b/build/utils.sh index 470cb24..37f328e 100755 --- a/build/utils.sh +++ b/build/utils.sh @@ -48,7 +48,7 @@ do_build() { do_install() { [[ -e "${DESTDIR}" ]] || mkdir -p "${DESTDIR}" find "${INSTALL_ROOT}" -type f -name '.git*' -delete - find "${INSTALL_ROOT}" -type d -name '.tx' -delete + rm-rf "${INSTALL_ROOT}/usr/share/web-greeter/themes/default/.tx" cp -R "${INSTALL_ROOT}"/* "${DESTDIR}" } diff --git a/themes/default/js/greeter.js b/themes/default/js/greeter.js index 33be030..1bb350b 100644 --- a/themes/default/js/greeter.js +++ b/themes/default/js/greeter.js @@ -651,6 +651,7 @@ class Theme { $( '#session-list' ).removeClass( 'hidden' ).show(); $( '#passwordArea' ).show(); + $('#passwordField').focus(); $( '.dropdown-toggle' ).dropdown(); this.auth_pending = true;