You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by fm...@apache.org on 2011/11/18 19:30:03 UTC

svn commit: r1203782 - /felix/trunk/webconsole/src/main/resources/res/lib/support.js

Author: fmeschbe
Date: Fri Nov 18 18:30:02 2011
New Revision: 1203782

URL: http://svn.apache.org/viewvc?rev=1203782&view=rev
Log:
FELIX-3236 Make the language selection a long-lived one (20 years should be kind of enough ;-) )

Modified:
    felix/trunk/webconsole/src/main/resources/res/lib/support.js

Modified: felix/trunk/webconsole/src/main/resources/res/lib/support.js
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/resources/res/lib/support.js?rev=1203782&r1=1203781&r2=1203782&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/resources/res/lib/support.js (original)
+++ felix/trunk/webconsole/src/main/resources/res/lib/support.js Fri Nov 18 18:30:02 2011
@@ -275,7 +275,11 @@ $(document).ready(function() {
 		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');