diff options
Diffstat (limited to 'web/app/view/login')
-rw-r--r-- | web/app/view/login/Login.js | 3 | ||||
-rw-r--r-- | web/app/view/login/LoginController.js | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/web/app/view/login/Login.js b/web/app/view/login/Login.js index 49fc8e011..f49857644 100644 --- a/web/app/view/login/Login.js +++ b/web/app/view/login/Login.js @@ -42,7 +42,8 @@ Ext.define('Traccar.view.login.Login', { submitValue: false, listeners: { select: 'onSelectLanguage' - } + }, + reference: 'languageField' }, { xtype: 'textfield', name: 'email', diff --git a/web/app/view/login/LoginController.js b/web/app/view/login/LoginController.js index 6620e07df..95b5900c9 100644 --- a/web/app/view/login/LoginController.js +++ b/web/app/view/login/LoginController.js @@ -26,6 +26,8 @@ Ext.define('Traccar.view.login.LoginController', { this.lookupReference('registerButton').setDisabled( !Traccar.getApplication().getServer().get('registration') ); + this.lookupReference('languageField').setValue(language); + }, onSelectLanguage: function(selected) { |