From: Shaun Grady <grady@shaungrady.com> Date: Fri, 7 Oct 2016 18:55:33 +0000 (-0700) Subject: Add `autofocus` attribute to login username field X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=6b0b9416a18dce7f1f20a6937caa03df153e2800;p=motioneye-debian Add `autofocus` attribute to login username field So you don't have to click/tap the username field before you can start entering your credentials. --- diff --git a/motioneye/static/js/main.js b/motioneye/static/js/main.js index b978106..8cc7a9b 100644 --- a/motioneye/static/js/main.js +++ b/motioneye/static/js/main.js @@ -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>' +