Ir a la navegación
Ir a la búsqueda
Busca en cnbGuatemala con Google
490 bytes añadidos
, hace 7 años
Línea 1: |
Línea 1: |
| + | /*hide empty table columns*/ |
| + | ( function ( $, mw ) { |
| + | $('.smwtable tr th').each(function(i) { |
| + | //select all tds in this column |
| + | var tds = $(this).parents('table') |
| + | .find('tr td:nth-child(' + (i + 1) + ')'); |
| + | //check if all the cells in this column are empty |
| + | if(tds.length == tds.filter(':empty').length) { |
| + | //hide header |
| + | $(this).hide(); |
| + | //hide cells |
| + | tds.hide(); |
| + | } |
| + | }); |
| + | |
| + | } ( jQuery, mediaWiki ) ); |
| + | |
| + | |
| ( function ( $, mw ) { | | ( function ( $, mw ) { |
| | | |