User:Westgrass/common.js

//l10n_data_table $(document).ready(function {	$('.l10n-data-table th.lang').on('click', function{ var $this = $(this); var lang = $this.attr('lang'); if(lang=='en'){ return; }   	$this.closest('table.l10n-data-table').find('td.'+lang).toggleClass('shrinked'); $this.toggleClass('shrinked'); });	$('.l10n-data-table th.all-lang').on('click', function{ var $this = $(this); $this.toggleClass('shrinked'); if($this.hasClass('shrinked')){ $this.closest('table.l10n-data-table').find('td.l, th.lang').addClass('shrinked'); $this.closest('table.l10n-data-table').find('td.en, th.en').removeClass('shrinked'); }else{ $this.closest('table.l10n-data-table').find('td.l, th.lang').removeClass('shrinked'); }   });    });