From a7a2174c927d27eead9139eb9ff65dc87d7eefbc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 3 Oct 2015 21:51:50 +1300 Subject: Fix remaining jshint warnings --- web/app/store/Languages.js | 8 ++++---- web/app/view/LoginController.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'web/app') 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 () { -- cgit v1.2.3