13,748
edits
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
$(function() { | $(function() { | ||
if ($('.navbox-section').length) { | if ($('.navbox-section').length) { | ||
$('section:nth-last-of-type(2) > .navbox').detach().appendTo('.navbox-section'); | if ($('section:nth-last-of-type(2) > *:not(.navbox):not(.mw-empty-elt)').length > 0) | ||
$('section:nth-last-of-type(2) > .navbox').detach().appendTo('.navbox-section'); | |||
if ($.trim($('.navbox-section').text()) == '') { | if ($.trim($('.navbox-section').text()) == '') { | ||
$('.navbox-heading').attr('style', 'display:none !important'); | $('.navbox-heading').attr('style', 'display:none !important'); |