aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/login/LoginController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-05-11 13:24:04 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-05-11 13:24:04 +1200
commitab3e2b28ade7854ed1df24c1e22abfce57f476c6 (patch)
treeb62a7189224bca40debd20b230b8ebb7d55cf077 /web/app/view/login/LoginController.js
parentdd75a13e316173dcc98c5cf73463ac3b5c35976d (diff)
downloadtraccar-server-ab3e2b28ade7854ed1df24c1e22abfce57f476c6.tar.gz
traccar-server-ab3e2b28ade7854ed1df24c1e22abfce57f476c6.tar.bz2
traccar-server-ab3e2b28ade7854ed1df24c1e22abfce57f476c6.zip
Split device controller
Diffstat (limited to 'web/app/view/login/LoginController.js')
-rw-r--r--web/app/view/login/LoginController.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/app/view/login/LoginController.js b/web/app/view/login/LoginController.js
index a88fffc09..c22b0e09a 100644
--- a/web/app/view/login/LoginController.js
+++ b/web/app/view/login/LoginController.js
@@ -22,6 +22,10 @@ Ext.define('Traccar.view.login.LoginController', {
'Traccar.view.login.Register'
],
+ onAfterRender: function(field) {
+ field.focus();
+ },
+
onSpecialKey: function(field, e) {
if (e.getKey() === e.ENTER) {
this.doLogin();