Skip to content
Snippets Groups Projects
Verified Commit 034b17dd authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'master' into...

Merge branch 'master' into 285-manage-permissions-for-persons-users-and-groups-django-groups-in-frontend
parents 930f3723 262b664b
No related branches found
No related tags found
1 merge request!533Resolve "Manage permissions for persons (users) and groups (Django groups) in frontend"
Pipeline #6762 canceled
......@@ -63,12 +63,7 @@ $(document).ready(function () {
// If JS is activated, the language form will be auto-submitted
$('.language-field select').change(function () {
// Ugly bug fix to ensure correct value
const selectEl = $("select[name=language]");
selectEl.val(selectEl.val());
$(".language-form").submit();
$(this).parents(".language-form").submit();
});
// If auto-submit is activated (see above), the language submit must not be visible
......
......@@ -13,7 +13,7 @@
{# Select #}
<div class="input-field language-field">
<span>{% trans "Language" %}</span>
<select name="language" id="language-select">
<select name="language">
{% for language in languages %}
<option value="{{ language.code }}" {% if language.code == LANGUAGE_CODE %}
selected {% endif %}>{{ language.name_local }}</option>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment