Browse Source

automatically focus the password field when it is shown. Fixes antergos/web-greeter#118

sisyphus
Dustin Falgout 8 years ago
parent
commit
6ec7e49255
No known key found for this signature in database
GPG Key ID: AEA529BF122902E5
  1. 2
      build/utils.sh
  2. 1
      themes/default/js/greeter.js

2
build/utils.sh

@ -48,7 +48,7 @@ do_build() {
do_install() { do_install() {
[[ -e "${DESTDIR}" ]] || mkdir -p "${DESTDIR}" [[ -e "${DESTDIR}" ]] || mkdir -p "${DESTDIR}"
find "${INSTALL_ROOT}" -type f -name '.git*' -delete 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}" cp -R "${INSTALL_ROOT}"/* "${DESTDIR}"
} }

1
themes/default/js/greeter.js vendored

@ -651,6 +651,7 @@ class Theme {
$( '#session-list' ).removeClass( 'hidden' ).show(); $( '#session-list' ).removeClass( 'hidden' ).show();
$( '#passwordArea' ).show(); $( '#passwordArea' ).show();
$('#passwordField').focus();
$( '.dropdown-toggle' ).dropdown(); $( '.dropdown-toggle' ).dropdown();
this.auth_pending = true; this.auth_pending = true;

Loading…
Cancel
Save