MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 357: Line 357:




     /*$('.related-skills').each(function () {
     $('.related-skills').each(function () {
         var cell = $(this).find('[data-type="table-cell"]');
         var cell = $(this).find('[data-type="table-cell"]');
         var count = cell.length / 2;
         var attempt = false;
         if (count > 4) {
        $(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');