diff --git a/apps/map/static/map/language.js b/apps/map/static/map/language.js new file mode 100644 index 0000000..8caa317 --- /dev/null +++ b/apps/map/static/map/language.js @@ -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) + ); + }) +}); diff --git a/ojusomap/templates/base.html b/ojusomap/templates/base.html index 8492519..ed13bc2 100644 --- a/ojusomap/templates/base.html +++ b/ojusomap/templates/base.html @@ -78,6 +78,22 @@ {% endfor %}