mirror of https://github.com/apache/cloudstack.git
bug 14088:
Fix Citrix log / EULA not rendering due to missing language cookie; specify default language variable, set to English, if no 'lang' cookie is present. status 14088: resolved fixed
This commit is contained in:
parent
8a0e5d28f2
commit
3aa044bc8c
|
|
@ -37,6 +37,9 @@
|
|||
});
|
||||
|
||||
$(function() {
|
||||
// Get language
|
||||
g_lang = $.cookie('lang') ? $.cookie('lang') : 'en';
|
||||
|
||||
/**
|
||||
* Generic error handling
|
||||
*/
|
||||
|
|
@ -362,7 +365,7 @@
|
|||
|
||||
// EULA check
|
||||
$.ajax({
|
||||
url: 'eula.' + $.cookie('lang') + '.html',
|
||||
url: 'eula.' + g_lang + '.html',
|
||||
dataType: 'html',
|
||||
success: function(html) {
|
||||
cloudStack.uiCustom.login($.extend(loginArgs, { eula: html, hasLogo: true }));
|
||||
|
|
|
|||
Loading…
Reference in New Issue