From c65c1876c0186ee5d4f88b81300e28f89a3d5597 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 31 Jul 2015 14:14:32 +1200 Subject: Init language combo box --- web/app/view/login/Login.js | 3 ++- web/app/view/login/LoginController.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'web/app/view') 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) { -- cgit v1.2.3