summaryrefslogtreecommitdiff
path: root/js/codeq
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-24 20:58:55 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-24 20:58:55 +0200
commita2ac828e8b4112d4c62665d60e37222ca646b6b2 (patch)
tree2d4ec4bd399f9c77a3bf1da3016aa584e5f7bcf1 /js/codeq
parent534447bf8cbe043c99ca3ac1bb2907a6b375c190 (diff)
Receive info about experiments from the server
Diffstat (limited to 'js/codeq')
-rw-r--r--js/codeq/core.js2
-rw-r--r--js/codeq/login.js2
2 files changed, 4 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. */
'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 <http://www.gnu.org/licenses/>. */
$("#settings-layout").val(sett['gui_layout']);
}
+ codeq.experiments = data.experiments || [];
+
codeq.globalStateMachine.transition('language');
};