diff --git a/templates/base/footer_content.tmpl b/templates/base/footer_content.tmpl
index b99a00089484b..ddd4f236498a5 100644
--- a/templates/base/footer_content.tmpl
+++ b/templates/base/footer_content.tmpl
@@ -10,9 +10,9 @@
{{.LangName}}
-
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 73f040ac75a24..91b6936a50963 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -2314,6 +2314,7 @@ $(document).ready(async () => {
$('.delete-button').on('click', showDeletePopup);
$('.add-all-button').on('click', showAddAllPopup);
$('.link-action').on('click', linkAction);
+ $('.language-menu a[lang]').on('click', linkLanguageAction);
$('.link-email-action').on('click', linkEmailAction);
$('.delete-branch-button').on('click', showDeletePopup);
@@ -2602,6 +2603,13 @@ function linkAction(e) {
});
}
+function linkLanguageAction() {
+ const $this = $(this);
+ $.post($this.data('url')).always(() => {
+ window.location.reload();
+ });
+}
+
function linkEmailAction(e) {
const $this = $(this);
$('#form-uid').val($this.data('uid'));