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:
Brian Federle 2012-03-05 16:13:09 -08:00
parent 6eec3d3377
commit 46ad531a1e

View File

@ -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 }));