diff --git a/myproject/myapp/static/js/languages.js b/myproject/myapp/static/js/languages.js new file mode 100644 index 0000000..131ef15 --- /dev/null +++ b/myproject/myapp/static/js/languages.js @@ -0,0 +1,5 @@ +document.addEventListener('DOMContentLoaded', function() { + document.getElementById('language-select').addEventListener('change', function() { + document.getElementById('language-form').submit(); + }); +});