Permalink
Browse files

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

  • Loading branch information...
1 parent 63d85ed commit cc05466392aff1421fe2d1e4c4d4b65f26264233 @fwenzel fwenzel committed Feb 24, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −1 flicks/base/templates/base.html
  2. +5 −0 media/js/init.js
@@ -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
@@ -20,4 +20,9 @@ $(function() {
}
});
});
+
+ // Submit on locale selector choice
+ $('form.languages select').change(function(){
+ this.form.submit();
+ });
});

0 comments on commit cc05466

Please sign in to comment.