app/assets/javascripts/has_accounts_engine/cyt.js
// Autofocus element having attribute data-autofocus
Autofocus element having attribute data-autofocus
Autofocus element having attribute data - autofocus
function addAutofocusBehaviour() {
  $('*[data-autofocus=true]')
    .filter(function() {return $(this).parents('.form-view').length < 1})
    .first().focus();
}
function addAutofocusBehaviour ( ) { $ ( '*[data-autofocus=true]' ) . filter ( function ( ) { return $ ( this ) . parents ( '.form-view' ) . length < 1 } ) . first ( ) . focus ( ) ; }
Autofocus element having attribute data-autofocus
Autofocus element having attribute data - autofocus