From 3aa044bc8ce5dbdc49bd4fe39477a3f64a873b5b Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Mon, 5 Mar 2012 16:13:09 -0800 Subject: [PATCH] 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 --- ui/scripts/cloudStack.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/scripts/cloudStack.js b/ui/scripts/cloudStack.js index 076bcd88f14..7d3ebd069f7 100644 --- a/ui/scripts/cloudStack.js +++ b/ui/scripts/cloudStack.js @@ -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 }));