aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-31 14:14:32 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-31 14:14:32 +1200
commitc65c1876c0186ee5d4f88b81300e28f89a3d5597 (patch)
tree6272ba9cc617ed7ae3e68bf191572945e365d697 /web/app/view
parenta69f0383a75411e599b728e9a4d50a3a363e52d8 (diff)
downloadtrackermap-server-c65c1876c0186ee5d4f88b81300e28f89a3d5597.tar.gz
trackermap-server-c65c1876c0186ee5d4f88b81300e28f89a3d5597.tar.bz2
trackermap-server-c65c1876c0186ee5d4f88b81300e28f89a3d5597.zip
Init language combo box
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/login/Login.js3
-rw-r--r--web/app/view/login/LoginController.js2
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) {