From baa9d49e6c84cd88c3c950b59655f41b5294624e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 3 Sep 2013 02:34:47 +0200 Subject: First work on i18n form to change language --- ishtar_common/static/js/ishtar.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/static/js/ishtar.js') diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index 08e500425..72da8fdda 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -41,6 +41,9 @@ $(document).ready(function(){ $('#to_bottom_arrow').hide(); $('#to_top_arrow').hide(); } + $('#language_selector').change(function(){ + $('#language_form').submit(); + }); }); $('#to_bottom_arrow').live('click', function(){ @@ -51,6 +54,7 @@ $('#to_top_arrow').live('click', function(){ $("html, body").animate({ scrollTop: 0}, 1000); }); + $("#main_menu ul li").live('click', function(){ var current_id = $(this).attr('id'); console.log(current_id); -- cgit v1.2.3