Focus the first visible form field in the guest area.

This commit is contained in:
zjean 2016-02-10 19:39:10 +01:00
parent 49292bbb2d
commit da1cce035a
2 changed files with 7 additions and 0 deletions

6
public/js/guest.js Normal file
View File

@ -0,0 +1,6 @@
$(function () {
"use strict";
// Focus first visible form element.
$("form input:enabled:visible:first").first().select()
});

View File

@ -48,6 +48,7 @@
<!-- /.login-box -->
<script type="text/javascript" src="js/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/guest.js"></script>
{% if env('ANALYTICS_ID','') != '' %}
<script>