diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-02 15:23:20 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-02 15:23:20 +0100 |
commit | f45177bd5b50e5fff620b7706d2b7b6572d60217 (patch) | |
tree | 98573dc34dd4db41aa057f1eaf54cbe4854320d7 /js | |
parent | 96d7a97d80f882111e435e98c6965ad999596b52 (diff) |
Ensure a layout is set at boot
Diffstat (limited to 'js')
-rw-r--r-- | js/codeq/init.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/codeq/init.js b/js/codeq/init.js index 6030f7c..f34382a 100644 --- a/js/codeq/init.js +++ b/js/codeq/init.js @@ -1,5 +1,5 @@ /* CodeQ: an online programming tutor. - Copyright (C) 2015 UL FRI + Copyright (C) 2015,2016 UL FRI This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free @@ -85,6 +85,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ codeq.template.setResources(resourceTree); // save the loaded resource tree codeq.fire('init'); // tell any interested modules that we are now initialized, perhaps they want to initialize too + codeq.fire('layoutchange'); // ensure a layout is set codeq.setLang(lang || 'en'); // initial language setting, this also translates the GUI // go to login codeq.globalStateMachine.transition('login'); |