We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b08ce0b + 9083eed commit dd95fe7Copy full SHA for dd95fe7
2 files changed
_includes/footer.html
@@ -47,9 +47,12 @@
47
}
48
49
};
50
- </script>
51
52
- <script src="https://code.jquery.com/jquery-3.0.0.min.js" integrity="sha256-JmvOoLtYsmqlsWxa7mDSLMwa6dZ9rrIdtrrVYRnDRH0=" crossorigin="anonymous"></script>
53
- <script src="/assets/js/i18n.js"></script>
+ document.getElementById('languages').onchange = function(ev) {
+ if (ev.currentTarget && ev.currentTarget.value) {
+ location.href = ev.currentTarget.value;
54
+ }
55
+ };
56
+ </script>
57
</body>
58
</html>
_includes/languages.html
@@ -1,4 +1,4 @@
1
-<select class="languages">
+<select id="languages" class="languages">
2
<option value="">Change Language</option>
3
{% for lang in site.languages %}
4
<option value="{{ lang.path }}">{{ lang.label }}</option>
0 commit comments