Add language switcher widget
This commit is contained in:
8
apps/map/static/map/language.js
Normal file
8
apps/map/static/map/language.js
Normal 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)
|
||||
);
|
||||
})
|
||||
});
|
Reference in New Issue
Block a user