Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made language switcher auto-submit on selection. Bug 730120.

  • Loading branch information...
commit cc05466392aff1421fe2d1e4c4d4b65f26264233 1 parent 63d85ed
@fwenzel fwenzel authored
Showing with 6 additions and 1 deletion.
  1. +1 −1  flicks/base/templates/base.html
  2. +5 −0 media/js/init.js
View
2  flicks/base/templates/base.html
@@ -95,7 +95,7 @@
title="{{ _('Legal') }}">{{ _('Legal') }}</a></li>
</ul>
<div id="language-switcher">
- <form id="language-switcher" class="languages go" method="GET">
+ <form class="languages go" method="GET">
<label for="language">{{ _('Other languages:') }}</label>
<select id="language" name="lang" dir="ltr">
{% for code, name in LANGUAGES|dictsort -%}
View
5 media/js/init.js
@@ -20,4 +20,9 @@ $(function() {
}
});
});
+
+ // Submit on locale selector choice
+ $('form.languages select').change(function(){
+ this.form.submit();
+ });
});
Please sign in to comment.
Something went wrong with that request. Please try again.