aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 21:51:50 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 21:51:50 +1300
commita7a2174c927d27eead9139eb9ff65dc87d7eefbc (patch)
tree99c422313f6c11f296b3ec43150da63e87dcaa17 /web/app
parent8416025e932669550c166cfc4263d55c149eed89 (diff)
downloadtraccar-server-a7a2174c927d27eead9139eb9ff65dc87d7eefbc.tar.gz
traccar-server-a7a2174c927d27eead9139eb9ff65dc87d7eefbc.tar.bz2
traccar-server-a7a2174c927d27eead9139eb9ff65dc87d7eefbc.zip
Fix remaining jshint warnings
Diffstat (limited to 'web/app')
-rw-r--r--web/app/store/Languages.js8
-rw-r--r--web/app/view/LoginController.js2
2 files changed, 5 insertions, 5 deletions
diff --git a/web/app/store/Languages.js b/web/app/store/Languages.js
index 66d3e6176..594953480 100644
--- a/web/app/store/Languages.js
+++ b/web/app/store/Languages.js
@@ -22,16 +22,16 @@
data: (function () {
var code, data = [];
- for (code in availableLanguages) {
- if (availableLanguages.hasOwnProperty(code)) {
+ for (code in Locale.languages) {
+ if (Locale.languages.hasOwnProperty(code)) {
data.push({
code: code,
- name: availableLanguages[code].name
+ name: Locale.languages[code].name
});
}
}
return data;
- }())
+ })()
});
})();
diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js
index f6a0414dd..dfff6b253 100644
--- a/web/app/view/LoginController.js
+++ b/web/app/view/LoginController.js
@@ -27,7 +27,7 @@
init: function () {
this.lookupReference('registerButton').setDisabled(
!Traccar.app.getServer().get('registration'));
- this.lookupReference('languageField').setValue(language);
+ this.lookupReference('languageField').setValue(Locale.language);
},
login: function () {