From a2ac828e8b4112d4c62665d60e37222ca646b6b2 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sun, 24 Apr 2016 20:58:55 +0200 Subject: Receive info about experiments from the server --- js/codeq/core.js | 2 ++ js/codeq/login.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/js/codeq/core.js b/js/codeq/core.js index fd58781..1763a2f 100644 --- a/js/codeq/core.js +++ b/js/codeq/core.js @@ -265,6 +265,8 @@ along with this program. If not, see . */ 'gui_layout': 'line-layout' }, + 'experiments': [], // experiments the user is participating in + 'availableLangs': [], // filled at boot from 'supportedLangs' 'supportedLangs': { 'en': 'English', diff --git a/js/codeq/login.js b/js/codeq/login.js index dff70e5..5701f34 100644 --- a/js/codeq/login.js +++ b/js/codeq/login.js @@ -62,6 +62,8 @@ along with this program. If not, see . */ $("#settings-layout").val(sett['gui_layout']); } + codeq.experiments = data.experiments || []; + codeq.globalStateMachine.transition('language'); }; -- cgit v1.2.1