diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-04-24 20:58:55 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-04-24 20:58:55 +0200 |
commit | a2ac828e8b4112d4c62665d60e37222ca646b6b2 (patch) | |
tree | 2d4ec4bd399f9c77a3bf1da3016aa584e5f7bcf1 /js | |
parent | 534447bf8cbe043c99ca3ac1bb2907a6b375c190 (diff) |
Receive info about experiments from the server
Diffstat (limited to 'js')
-rw-r--r-- | js/codeq/core.js | 2 | ||||
-rw-r--r-- | js/codeq/login.js | 2 |
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'); }; |