Add language switcher widget

This commit is contained in:
Carl van Tonder
2018-05-19 13:52:19 -04:00
parent 8a68b826d3
commit 0160e58491
4 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,8 @@
$(function() {
$('#id-language-dropdown').change(function() {
window.location = ('/set_language/'
+ $('#id-language-dropdown').find(':selected').val()
+ "?from=" + encodeURI(window.location.href)
);
})
});