2 * Django L18N localization selection.
6 $('#language').click(function(event) {
7 var $language = $(this);
8 var $languages = $('#languages')
9 if (!$language.hasClass('open')) {
10 $language.addClass('open');
12 $('html').click(function(){
13 $language.removeClass('open');
15 $(this).unbind('click');
17 event.stopPropagation();
21 $('#languages li a').click(function(event) {
22 event.preventDefault();
23 var lang = $(this).html();
24 $("#langsel").val(lang);
25 $("#langform").submit();