summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-09-30 16:31:24 +0200
committerAleš Smodiš <aless@guru.si>2015-09-30 16:31:24 +0200
commit7c65ca7a98e681eee5d1910c10e57072caee1799 (patch)
tree8d1bd4e24f45cc6e4024ede95a43ac76f2d219bb
parent2809b3fb4bfff39eb2eef28b1f681fbb6355d0f1 (diff)
Bugfix login.js: sett was not declared, search for lan, not lang, in the returned settings.
-rw-r--r--js/codeq/login.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/codeq/login.js b/js/codeq/login.js
index e5a446b..7844dc4 100644
--- a/js/codeq/login.js
+++ b/js/codeq/login.js
@@ -16,9 +16,9 @@
if (data.code !== 0) throw new Error('Login failed, code: ' + data.code + ', message: ' + data.message);
//merge these settings into the already existing default settings
- sett = data.settings;
+ var sett = data.settings;
$.merge(true, codeq.settings, sett);
- if('lang' in sett && sett['lan'] in codeq.supportedLangs){
+ if('lan' in sett && sett['lan'] in codeq.supportedLangs){
codeq.setLang(sett['lan']);
}