diff options
author | Martin Wright <martin@mynameismartin.com> | 2015-06-30 14:44:29 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-08-07 13:15:44 +0100 |
commit | 8c8ea75a37519ead39ec162217f443b10fc6a4f0 (patch) | |
tree | 0cd4c6ce1986530984d2af7b7ed3e2fd505385a9 /lib | |
parent | d0043aad2f7ac9baaa98c22ae516501aa94ebe72 (diff) |
add locale switcher from WDTK theme
Diffstat (limited to 'lib')
-rw-r--r-- | lib/views/general/_before_body_end.html.erb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/views/general/_before_body_end.html.erb b/lib/views/general/_before_body_end.html.erb new file mode 100644 index 0000000..daeaeb2 --- /dev/null +++ b/lib/views/general/_before_body_end.html.erb @@ -0,0 +1,7 @@ +<script> + jQuery('#user_locale_switcher').find('.locale-list-trigger').each(function() { + jQuery(this).click(function(){ + jQuery(this).parent().toggleClass('active'); + }); + }); +</script> |