From 085f41db15450957e3af9ef2ba6689da2be26f41 Mon Sep 17 00:00:00 2001 From: Robert Zorko Date: Thu, 15 Oct 2015 16:09:48 +0200 Subject: added gui_lang to the saml_login request --- js/codeq/comms.js | 2 +- js/codeq/core.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/codeq/comms.js b/js/codeq/comms.js index 225026b..5908e0d 100644 --- a/js/codeq/comms.js +++ b/js/codeq/comms.js @@ -527,7 +527,7 @@ }, 'samlLogin': function(){ - return this.send({'action':'saml_login'}); + return this.send({'action':'saml_login','gui_lang':codeq.getLang()}); } }; })(); diff --git a/js/codeq/core.js b/js/codeq/core.js index 33c00a4..6d3a5dc 100644 --- a/js/codeq/core.js +++ b/js/codeq/core.js @@ -392,6 +392,10 @@ codeq.fire('langchange', {'lang': newLang}); }, + 'getLang': function(){ + return codeq.settings['gui_lang']; + }, + 'setResources': function (newResources) { resources = newResources; }, -- cgit v1.2.1