FELIX-3236 Make the language selection a long-lived one (20 years should be kind of enough ;-) )
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1203782 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/resources/res/lib/support.js b/webconsole/src/main/resources/res/lib/support.js
index 55539c4..fdcc3c4 100644
--- a/webconsole/src/main/resources/res/lib/support.js
+++ b/webconsole/src/main/resources/res/lib/support.js
@@ -275,7 +275,11 @@
function() { $(this).find('.flags').show('blind') },
function() { $(this).find('.flags').hide('blind') });
langSelect.find('.flags img').click(function() {
- $.cookies.set('felix.webconsole.locale', $(this).attr('alt'));
+ var date = new Date();
+ date.setFullYear(date.getFullYear() + 20);
+ $.cookies.set('felix.webconsole.locale',
+ $(this).attr('alt'),
+ { expiresAt: date });
location.reload();
});
var locale = $.cookies.get('felix.webconsole.locale');