Bug fixes

This commit is contained in:
Inga Kirschnick 2023-12-21 13:03:58 +01:00
parent 0a45e1bb65
commit b6864b355a
2 changed files with 10 additions and 9 deletions

View File

@ -133,11 +133,11 @@
</script> </script>
<script> <script>
let languageSwitch = document.querySelector('#terms-of-use-modal-switch'); let languageModalSwitch = document.querySelector('#terms-of-use-modal-switch');
let termsOfUseContent = document.querySelectorAll('.terms-of-use-modal-content'); let termsOfUseModalContent = document.querySelectorAll('.terms-of-use-modal-content');
if (languageSwitch) { if (languageModalSwitch) {
languageSwitch.addEventListener('change', function() { languageModalSwitch.addEventListener('change', function() {
termsOfUseContent.forEach(content => { termsOfUseModalContent.forEach(content => {
content.classList.toggle('hide'); content.classList.toggle('hide');
}); });
}); });

View File

@ -28,11 +28,12 @@
{% endblock page_content %} {% endblock page_content %}
{% block scripts %} {% block scripts %}
{{ super() }}
<script> <script>
let languageSwitch = document.querySelector('#terms-of-use-page-switch'); let languagePageSwitch = document.querySelector('#terms-of-use-page-switch');
let termsOfUseContent = document.querySelectorAll('.terms-of-use-page-content'); let termsOfUsePageContent = document.querySelectorAll('.terms-of-use-page-content');
languageSwitch.addEventListener('change', function() { languagePageSwitch.addEventListener('change', function() {
termsOfUseContent.forEach(content => { termsOfUsePageContent.forEach(content => {
content.classList.toggle('hide'); content.classList.toggle('hide');
}); });
}); });