Line 66: |
Line 66: |
| }); | | }); |
| | | |
− | $(document).on("click", ".uls-language-block a", function() { | + | $(document).ready(function() { |
− | console.log('clicked');
| + | $(document).on("click", ".uls-language-block a", function() { |
− | var lang = $(this).attr('lang');
| + | console.log('clicked'); |
− | console.log(lang);
| + | var lang = $(this).attr('lang'); |
− | setCookie('lang', lang);
| + | console.log(lang); |
| + | setCookie('lang', lang); |
| + | }); |
| }); | | }); |