From f45177bd5b50e5fff620b7706d2b7b6572d60217 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 2 Mar 2016 15:23:20 +0100 Subject: Ensure a layout is set at boot --- js/codeq/init.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js') 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 . */ 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'); -- cgit v1.2.1