]> www.vanbest.org Git - motioneye-debian/commitdiff
Add `autofocus` attribute to login username field
authorShaun Grady <grady@shaungrady.com>
Fri, 7 Oct 2016 18:55:33 +0000 (11:55 -0700)
committerGitHub <noreply@github.com>
Fri, 7 Oct 2016 18:55:33 +0000 (11:55 -0700)
So you don't have to click/tap the username field before you can start entering your credentials.

motioneye/static/js/main.js

index b978106dd3a955eb2817ef4c859d0901025473f1..8cc7a9b9537533fd8b1281a1d589fb65595c2a83 100644 (file)
@@ -3270,7 +3270,7 @@ function runLoginDialog(retry) {
                 '</tr>' +
                 '<tr>' +
                     '<td class="dialog-item-label"><span class="dialog-item-label">Username</span></td>' +
-                    '<td class="dialog-item-value"><input type="text" name="username" class="styled" id="usernameEntry"></td>' +
+                    '<td class="dialog-item-value"><input type="text" name="username" class="styled" id="usernameEntry" autofocus></td>' +
                 '</tr>' +
                 '<tr>' +
                     '<td class="dialog-item-label"><span class="dialog-item-label">Password</span></td>' +