commit | b8a12ff4134c02fc6bd5d576f25acbe3f249c2d4 | [log] [tgz] |
---|---|---|
author | Valentin Pavlov Valchev <vvalchev@apache.org> | Wed Aug 11 07:25:43 2010 +0000 |
committer | Valentin Pavlov Valchev <vvalchev@apache.org> | Wed Aug 11 07:25:43 2010 +0000 |
tree | 2e448f6bfdc63e37eabac020bc36d68774bc2e2d | |
parent | f6ba8a701552bd924c9de8df2ea3275a0cbc1cb4 [diff] [blame] |
Fixed FELIX-2277 /Allow the user to select display language/ https://issues.apache.org/jira/browse/FELIX-2277 git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@984311 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 3687e40..2228174 100644 --- a/webconsole/src/main/resources/res/lib/support.js +++ b/webconsole/src/main/resources/res/lib/support.js
@@ -252,3 +252,15 @@ } return element; } + +// language selection element +var langSelect = false; +$(document).ready(function() { + langSelect = $('#langSelect').hover( + 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')); + location.reload(); + }); +});