ElEditors, Interface administrators, Administrators
70,866
edits
No edit summary |
No edit summary |
||
Line 357: | Line 357: | ||
$('.related-skills').each(function () { | |||
var cell = $(this).find('[data-type="table-cell"]'); | var cell = $(this).find('[data-type="table-cell"]'); | ||
var | var attempt = false; | ||
if ( | $(this).find('[data-type="table-row"]').each(function(){ | ||
if ($(this).find('[data-type="table-cell"]').length > 8) attempt = true; | |||
}); | |||
if (attempt) { | |||
var overflow_elems = chunk(cell, 8); | var overflow_elems = chunk(cell, 8); | ||
$(this).empty(); | $(this).empty(); | ||
Line 368: | Line 371: | ||
} | } | ||
} | } | ||
}); | }); | ||
$('.related-skills:not(.no-div)').addClass('shown'); | $('.related-skills:not(.no-div)').addClass('shown'); |